Skip to content

Instantly share code, notes, and snippets.

@minisu
Created May 24, 2013 12:36
Show Gist options
  • Save minisu/5643208 to your computer and use it in GitHub Desktop.
Save minisu/5643208 to your computer and use it in GitHub Desktop.
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Override
TestState getStartingState()
{
return ProjectLoadedWithoutAgentsState.STATE;
}
@Test
public void shouldHaveRows() throws Exception
{
ComponentHandle fixedRate = robot.createComponent( FIXED_RATE_GENERATOR );
ComponentHandle tableLog = robot.createComponent( TABLE_LOG );
fixedRate.connectTo( tableLog );
assertTrue( numberOfTableRows().isEmpty() );
robot.runTestFor( seconds( 3 ) );
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