Skip to content

Instantly share code, notes, and snippets.

/**
* @id com.eviware.DataSource
* @category flow
* @dependency com.xlson.groovycsv:groovycsv:1.0
*/
import com.xlson.groovycsv.CsvParser
createOutgoing( 'output' )
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Override
TestState getStartingState()
{
return ProjectLoadedWithoutAgentsState.STATE;
}
@Test
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Test
public void shouldHaveRows() throws Exception
{
// GIVEN
enterState( ProjectLoadedWithoutAgentsState.STATE );
ComponentHandle fixedRate = robot.createComponent( FIXED_RATE_GENERATOR );
ComponentHandle tableLog = robot.createComponent( TABLE_LOG );
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Test
public void shouldHaveRows() throws Exception
{
// GIVEN
enterState( ProjectLoadedWithoutAgentsState.STATE );
ComponentHandle fixedRate = robot.createComponent( FIXED_RATE_GENERATOR );
ComponentHandle tableLog = robot.createComponent( TABLE_LOG );
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Test
public void shouldHaveRows() throws Exception
{
// GIVEN
enterState( ProjectLoadedWithoutAgentsState.STATE );
ComponentHandle fixedRate = robot.createComponent( FIXED_RATE_GENERATOR );
ComponentHandle tableLog = robot.createComponent( TABLE_LOG );
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Test
public void shouldHaveRows() throws Exception
{
// GIVEN
enterState( ProjectLoadedWithoutAgentsState.STATE );
ComponentHandle fixedRate = robot.createComponent( FIXED_RATE_GENERATOR );
ComponentHandle tableLog = robot.createComponent( TABLE_LOG );
Given an open project without any agents
And a Fixed Rate Generator is on the project canvas
And a TableLog is on the project canvas
And the Fixed Rate Generator and the TableLog are connected # How does Cucumber know which Generator and TableLog to connect?
When the test is run for 3 seconds
Then the TableLog contains rows
Given an open project without any agents
And a Fixed Rate Generator is connected to a TableLog on the canvas
When the test is run for 3 seconds
Then the TableLog contains rows
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Test
public void shouldHaveRows() throws Exception
{
// GIVEN
enterState( ProjectLoadedWithoutAgentsState.STATE );
fixedRateGenerator_connectedTo_tableLog();
@Category( IntegrationTest.class )
public class TableLogTest extends FxIntegrationTest
{
@Override
TestState getStartingState()
{
return ProjectLoadedWithoutAgentsState.STATE;
}
@Test