@Test public void should_lookup_showing_JToolBar_by_name() { robot.showWindow(window); JToolBarFixture fixture = new JToolBarFixture(robot, "toolBar"); assertThat(fixture.robot).isSameAs(robot); assertThat(fixture.component()).isSameAs(window.toolBar); }
@Override void onSetUp() { driver = createMock(JToolBarDriver.class); fixture = new JToolBarFixture(robot(), target); fixture.driver(driver); }