Skip to content

Instantly share code, notes, and snippets.

@minisu
Last active December 17, 2015 17:09
Show Gist options
  • Save minisu/5643475 to your computer and use it in GitHub Desktop.
Save minisu/5643475 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 should_haveNoRows_whenCreated() throws Exception
{
// GIVEN
aFixedRateGenerator().connectedTo( aTableLog() );
// THEN
assertTrue( tableRows().isEmpty() );
}
@Test
public void should_getRows_whenGettingInput() throws Exception
{
// GIVEN
aFixedRateGenerator().connectedTo( aTableLog() );
// WHEN
robot.runTestFor( seconds( 3 ) );
// THEN
assertFalse( tableRows().isEmpty() );
}
//// Private implementation methods
Set<Node> tableRows()
{
return findAll( ".table-row-cell" );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment