Skip to content

Instantly share code, notes, and snippets.

@minisu
Last active December 17, 2015 18:19
Show Gist options
  • Save minisu/5652240 to your computer and use it in GitHub Desktop.
Save minisu/5652240 to your computer and use it in GitHub Desktop.
Java TableLogTest
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Override
TestState getStartingState()
{
return ProjectLoadedWithoutAgentsState.STATE;
}
@Test
public void should_haveNoRows_whenCreated()
{
connect( aFixedRateGenerator ).to( aTableLog );
assertThat( tableRows(), isEmpty() );
}
@Test
public void should_getRows_whenGettingInput()
{
connect( aFixedRateGenerator ).to( aTableLog );
runTestFor( 3, SECONDS );
assertThat( tableRows(), isNotEmpty() );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment