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

Method testForwardPassAction

src/test/java/org/ttn/ParserTest.java:233–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

231 }
232
233 @Test
234 public void testForwardPassAction() throws ScannerException, ParserException {
235 List<String> tokens = getTokens("04:06 Dwp->ForwardPass => AM C @ Dd");
236 Statement statement = (Statement) new Parser().parseTokenList(tokens);
237
238 assertEquals(246, statement.getTime());
239 assertEquals(PitchPosition.Dwp, statement.getPitchPosition());
240 assertEquals(ActionType.ForwardPass, statement.getAction().getType());
241 assertEquals(TacticalPosition.X.AM, statement.getActionOutcome().getTacticalPosition().getX());
242 assertEquals(TacticalPosition.Y.C, statement.getActionOutcome().getTacticalPosition().getY());
243 assertEquals(PitchPosition.Dd, statement.getActionOutcome().getPitchPosition());
244 assertEquals(STANDARD, statement.getType());
245 }
246
247 @Test
248 public void testMoveAction() throws ScannerException, ParserException {

Callers

nothing calls this directly

Calls 12

getTokensMethod · 0.95
getTimeMethod · 0.95
getPitchPositionMethod · 0.95
getActionMethod · 0.95
getActionOutcomeMethod · 0.95
getTypeMethod · 0.95
parseTokenListMethod · 0.80
getXMethod · 0.65
getYMethod · 0.65
getTypeMethod · 0.45
getTacticalPositionMethod · 0.45
getPitchPositionMethod · 0.45

Tested by

no test coverage detected