@Test public void should_not_pack_window_as_specified() { // TODO split this test case in 2+ Dimension size = new Dimension(100, 100); WindowToShow w = execute( new GuiQuery<WindowToShow>() { @Override protected WindowToShow executeInEDT() { return new WindowToShow(); } }); robot.showWindow(w, size, false); assertThat(sizeOf(w)).isEqualTo(size); assertThat(w.wasPacked()).isFalse(); assertThat(locationOnScreen(w)).isEqualTo(new Point(0, 0)); }
@After public void tearDown() { robot.cleanUp(); }
@Before public void setUp() { robot = (BasicRobot) BasicRobot.robotWithNewAwtHierarchy(); }