Skip to content

Instantly share code, notes, and snippets.

@minisu
Last active December 17, 2015 18:19
Show Gist options
  • Save minisu/5652345 to your computer and use it in GitHub Desktop.
Save minisu/5652345 to your computer and use it in GitHub Desktop.
A non-standard way of implementing TableLogTest in Scala
class TableLogTest extends FunSpec with FxIntegrationTest {
startingState = ProjectLoadedWithoutAgentsState.STATE
"A TableLog" should "have no rows to begin with" in {
create a TableLog
tableRows should be (empty)
}
it should "display rows when getting input" in {
connect a FixedRateGenerator to a TableLog
runTestFor( 3 seconds )
tableRows should not be (empty)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment