약간 모순이 될 수 있습니다. 하지만 기본적으로 Java 편집기 /보기 등을 보여주는 "테스트"를 실행해야하며 사용자가 나머지 응용 프로그램을 시작하지 않고도보기와 상호 작용할 수 있습니다. 같은Java 종료가 아닌 Java 테스트가 있습니까?
뭔가 :
public static void main(String[] args) {
Display display = new Display();
final Shell shell = new Shell(display);
shell.setSize(500, 500);
shell.setLayout(new RowLayout());
shell.setText("Composite Example");
final Composite composite = new Composite(shell, SWT.NONE);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 4;
composite.setLayout(gridLayout);
// Here the view is shown
MyExample sdf = new MyExample(composite, SWT.NONE);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
은 사용자가 시작하고 수동으로 종료해야 이러한 사용자 상호 작용 테스트를 만들려면이 (예를 들어, 사용의 JUnit)를 수행하는보다 체계적인 방법이 있나요?