Skip to content

Instantly share code, notes, and snippets.

@minisu
Created May 24, 2013 12:41
Show Gist options
  • Save minisu/5643237 to your computer and use it in GitHub Desktop.
Save minisu/5643237 to your computer and use it in GitHub Desktop.
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Test
public void shouldHaveRows() throws Exception
{
// GIVEN
enterState( ProjectLoadedWithoutAgentsState.STATE );
ComponentHandle fixedRate = robot.createComponent( FIXED_RATE_GENERATOR );
ComponentHandle tableLog = robot.createComponent( TABLE_LOG );
fixedRate.connectTo( tableLog );
// WHEN
robot.runTestFor( seconds( 3 ) );
// THEN
assertFalse( numberOfTableRows().isEmpty() );
}
//// Private implementation methods
private Set<Node> numberOfTableRows()
{
return findAll( ".table-row-cell" );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment