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

Method testDiagonalPassAction

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

Source from the content-addressed store, hash-verified

217 }
218
219 @Test
220 public void testDiagonalPassAction() throws ScannerException, ParserException {
221 List<String> tokens = getTokens("04:04 Dpw->DiagonalPass => D R @ Dwp");
222 Statement statement = (Statement) new Parser().parseTokenList(tokens);
223
224 assertEquals(244, statement.getTime());
225 assertEquals(PitchPosition.Dpw, statement.getPitchPosition());
226 assertEquals(ActionType.DiagonalPass, statement.getAction().getType());
227 assertEquals(TacticalPosition.X.D, statement.getActionOutcome().getTacticalPosition().getX());
228 assertEquals(TacticalPosition.Y.R, statement.getActionOutcome().getTacticalPosition().getY());
229 assertEquals(PitchPosition.Dwp, statement.getActionOutcome().getPitchPosition());
230 assertEquals(STANDARD, statement.getType());
231 }
232
233 @Test
234 public void testForwardPassAction() 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