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

Method testCommentedStatement

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

Source from the content-addressed store, hash-verified

121 }
122
123 @Test
124 public void testCommentedStatement() throws ScannerException, ParserException {
125
126 Statement parsedStatement = parseStatement("00:00 L: KO => DM # My comments");
127
128 assertEquals(new MatchTime(0, 0), parsedStatement.getTime());
129 assertEquals("L", parsedStatement.getTeam());
130 assertEquals(StateContext.getEntity("KO"), parsedStatement.getStateIn().getContext());
131 assertEquals(Coordinates.getEntity("DM"), parsedStatement.getStateOut().getSpace());
132 assertEquals(" My comments", parsedStatement.getComment());
133 }
134
135 @Test
136 public void testCommentedOutStatement() throws ScannerException, ParserException {

Callers

nothing calls this directly

Calls 10

parseStatementMethod · 0.95
getTimeMethod · 0.95
getTeamMethod · 0.95
getEntityMethod · 0.95
getStateInMethod · 0.95
getEntityMethod · 0.95
getStateOutMethod · 0.95
getCommentMethod · 0.95
getSpaceMethod · 0.80
getContextMethod · 0.45

Tested by

no test coverage detected