@@ -0,0 +1,1121 @@
+package com.codeaffine.extras.launch.internal.cleanup;%0A%0Aimport static org.assertj.core.api.Assertions.assertThat;%0A%0Aimport org.eclipse.swt.SWT;%0Aimport org.eclipse.swt.widgets.Button;%0Aimport org.junit.Before;%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Aimport com.codeaffine.eclipse.swt.test.util.DisplayHelper;%0A%0Apublic class ButtonsTest %7B%0A%0A  @Rule%0A  public final DisplayHelper displayHelper = new DisplayHelper();%0A%0A  private Button button;%0A%0A  @Before%0A  public void setUp() %7B%0A    button = new Button( displayHelper.createShell(), SWT.PUSH );%0A  %7D%0A%0A  @Test%0A  public void testComputePreferredButtonWidth() %7B%0A    int width = Buttons.computePreferredButtonWidth( button );%0A%0A    assertThat( width ).isGreaterThan( 0 );%0A  %7D%0A%0A  @Test%0A  public void testComputePreferredButtonWidthForWideButton() %7B%0A    int emptyWidth = Buttons.computePreferredButtonWidth( button );%0A    button.setText( longText() );%0A%0A    int width = Buttons.computePreferredButtonWidth( button );%0A%0A    assertThat( width ).isGreaterThan( emptyWidth );%0A  %7D%0A%0A  private static String longText() %7B%0A    return new String( new char%5B 500 %5D ).replace( %22%5C0%22, %22X%22 );%0A  %7D%0A%7D%0A

Add test for Buttons::computePreferredButtonWidth()