Supports functional testing of {@code JTabbedPane}s.
Note: This class is intended for internal use only. Please use the classes in the package {@link org.fest.swing.fixture} in your tests.
59606162636465
super(JTabbedPaneFixture.class, robot, tabbedPaneName, JTabbedPane.class); } @Override protected @Nonnull JTabbedPaneDriver createDriver(@Nonnull Robot robot) { return new JTabbedPaneDriver(robot); }
4546474849505152535455
} @Test public void should_return_tab_titles_using_driver() { String[] titles = { "One", "Two" }; JTabbedPaneDriver driver = fixture.driver(); JTabbedPane target = fixture.target(); when(driver.tabTitles(target)).thenReturn(titles); assertThat(fixture.tabTitles()).isSameAs(titles); verify(driver).tabTitles(target); }
68697071727374
super(robot, tabbedPaneName, JTabbedPane.class); createDriver(); } private void createDriver() { driver(new JTabbedPaneDriver(robot)); }