Supports functional testing of {@code JLabel}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.
56575859606162
super(JLabelFixture.class, robot, labelName, JLabel.class); } @Override protected @Nonnull JLabelDriver createDriver(@Nonnull Robot robot) { return new JLabelDriver(robot); }
4344454647484950515253
fixture.replaceDriverWith(mock(JLabelDriver.class)); } @Test public void should_return_text_using_driver() { JLabelDriver driver = fixture.driver(); JLabel target = fixture.target(); when(driver.textOf(target)).thenReturn("Six"); assertThat(fixture.text()).isEqualTo("Six"); verify(driver).textOf(target); }
64656667686970
super(robot, labelName, JLabel.class); createDriver(); } private void createDriver() { driver(new JLabelDriver(robot)); }