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

Method testParallelPassAction

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

Source from the content-addressed store, hash-verified

203 }
204
205 @Test
206 public void testParallelPassAction() throws ScannerException, ParserException {
207 List<String> tokens = getTokens("03:58 Dp->ParallelPass => D C @ Dp");
208 Statement statement = (Statement) new Parser().parseTokenList(tokens);
209
210 assertEquals(238, statement.getTime());
211 assertEquals(PitchPosition.Dp, statement.getPitchPosition());
212 assertEquals(ActionType.ParallelPass, statement.getAction().getType());
213 assertEquals(TacticalPosition.X.D, statement.getActionOutcome().getTacticalPosition().getX());
214 assertEquals(TacticalPosition.Y.C, statement.getActionOutcome().getTacticalPosition().getY());
215 assertEquals(PitchPosition.Dp, statement.getActionOutcome().getPitchPosition());
216 assertEquals(STANDARD, statement.getType());
217 }
218
219 @Test
220 public void testDiagonalPassAction() 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