MCPcopy Create free account
hub / github.com/atas76/openengine / testRandomActionParsing

Method testRandomActionParsing

src/test/java/org/fgn/ParserTest.java:199–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 }
198
199 @Test
200 public void testRandomActionParsing() throws ScannerException, ParserException {
201
202 Statement parsedStatement = parseStatement(RANDOM_ACTION_STATEMENT);
203
204 assertEquals(new MatchTime(12, 38), parsedStatement.getTime());
205 assertEquals("T", parsedStatement.getTeam());
206 assertEquals(Coordinates.getEntity("D"), parsedStatement.getStateIn().getSpace());
207 assertEquals("Pass", parsedStatement.getAction().toString());
208 assertEquals(Coordinates.getEntity("DM"), parsedStatement.getStateOut().getSpace());
209 }
210
211 @Test
212 public void testDefaultActionParsing() throws ScannerException, ParserException {

Callers

nothing calls this directly

Calls 9

parseStatementMethod · 0.95
getTimeMethod · 0.95
getTeamMethod · 0.95
getEntityMethod · 0.95
getStateInMethod · 0.95
getActionMethod · 0.95
getStateOutMethod · 0.95
getSpaceMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected