SimCoJUnitTests.java

Summary
SimCoJUnitTests.java
setUpInitializes netlogo api object and reads main file (SimCo.nlogo).
tearDownCleans up netlogo api object.
testReporterApi wrapper function to get reporter results and fail if reporter doesn’t exist.

setUp

@Before public void setUp()

Initializes netlogo api object and reads main file (SimCo.nlogo).  Runs before each test.

tearDown

@After public void tearDown() throws InterruptedException

Cleans up netlogo api object.  Runs after each test.

@throws InterruptedException

testReporter

public void testReporter(String reporter,
String input,
String expected)

Api wrapper function to get reporter results and fail if reporter doesn’t exist.

@param reporter @param input @param expected

@Before public void setUp()
Initializes netlogo api object and reads main file (SimCo.nlogo).
@After public void tearDown() throws InterruptedException
Cleans up netlogo api object.
public void testReporter(String reporter,
String input,
String expected)
Api wrapper function to get reporter results and fail if reporter doesn’t exist.
Close