Supports functional testing of {@code JProgressBar}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.
61626364656667
super(JProgressBarFixture.class, robot, labelName, JProgressBar.class); } @Override protected @Nonnull JProgressBarDriver createDriver(@Nonnull Robot robot) { return new JProgressBarDriver(robot); }
6263646566676869707172
verify(fixture.driver()).requireIndeterminate(fixture.target()); } @Test public void should_return_text_using_driver() { JProgressBarDriver driver = fixture.driver(); JProgressBar target = fixture.target(); when(driver.textOf(target)).thenReturn("Hello"); assertThat(fixture.text()).isEqualTo("Hello"); verify(driver).textOf(target); }
65666768697071
super(robot, labelName, JProgressBar.class); createDriver(); } private void createDriver() { driver(new JProgressBarDriver(robot)); }