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

Method testBackPassAction

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

Source from the content-addressed store, hash-verified

189 }
190
191 @Test
192 public void testBackPassAction() throws ScannerException, ParserException {
193 List<String> tokens = getTokens("03:20 DMw->BackPass => D L @ DMw");
194 Statement statement = (Statement) new Parser().parseTokenList(tokens);
195
196 assertEquals(200, statement.getTime());
197 assertEquals(PitchPosition.DMw, statement.getPitchPosition());
198 assertEquals(ActionType.BackPass, statement.getAction().getType());
199 assertEquals(TacticalPosition.X.D, statement.getActionOutcome().getTacticalPosition().getX());
200 assertEquals(TacticalPosition.Y.L, statement.getActionOutcome().getTacticalPosition().getY());
201 assertEquals(PitchPosition.DMw, statement.getActionOutcome().getPitchPosition());
202 assertEquals(STANDARD, statement.getType());
203 }
204
205 @Test
206 public void testParallelPassAction() 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