4445464748495051525354
try { robot.showWindow(window, new Dimension(500, 300)); Insets insets = insetsFrom(window); assertThat(insets).isEqualTo(insetsOf(window)); } finally { robot.cleanUp(); } } @Test public void should_return_empty_insets_if_exception_thrown() {
6061626364656667
frameFixture.button("Selection-1").click(); assert selection[0] == 1 : "Second item (index 1) should have been selected, selection index was " + selection[0]; robot.cleanUp(); } }