Created
May 24, 2013 13:41
-
-
Save minisu/5643591 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Category( IntegrationTest.class ) | |
public class TableLogTest extends FxIntegrationTest | |
{ | |
@Override | |
TestState getStartingState() | |
{ | |
return ProjectLoadedWithoutAgentsState.STATE; | |
} | |
void given() | |
{ | |
// GIVEN | |
aFixedRateGenerator().connectedTo( aTableLog() ); | |
} | |
@Test | |
public void should_haveNoRows_whenCreated() | |
{ | |
// THEN | |
assertTrue( tableRows().isEmpty() ); | |
} | |
@Test | |
public void should_getRows_whenGettingInput() | |
{ | |
// WHEN | |
robot.runTestFor( seconds( 3 ) ); | |
// THEN | |
assertFalse( tableRows().isEmpty() ); | |
} | |
//// Private implementation methods | |
private 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