Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: e3b39afdb4466e66070f3a696d6bff2e1ff1db87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.eclipse.swt.tests.manualJUnit;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Shell;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;

/** Convienience class for easy copy & paste */
@FixMethodOrder(MethodSorters.JVM)
public class MJ_Template extends MJ_root {

	@Test
	public void test_template() {
		Shell shell = mkShell("Instructions: Pass:F1  Fail:F2  Skip:F3  Exit:Esc");

		Button button = new Button(shell, SWT.PUSH);
		button.setText("Hello World");
		button.pack();
		button.setLocation(10, 10);

		shell.setSize(SWIDTH, SHEIGHT);
		shell.open();
		mainLoop(shell);
	}

}

Back to the top