}
@Test
public void testWaitForSwing() throws Throwable {
DialogForTesting dialog1 = new DialogForTesting(this.getClass().getName());
dialog1.addButton("foo", "bar");
DialogForTesting dialog2 = new DialogForTesting(this.getClass().getName() + ".2");
final HashSet<Window> hashWindows = new HashSet<Window>();
ITopLevelWindowListener listener = new ITopLevelWindowListener() {
public void topLevelWindowCreated(Window window) {
hashWindows.add(window);