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

Method testMoveAction

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

Source from the content-addressed store, hash-verified

245 }
246
247 @Test
248 public void testMoveAction() throws ScannerException, ParserException {
249 List<String> tokens = getTokens("04:16 DMw->Move => MDw");
250 Statement statement = (Statement) new Parser().parseTokenList(tokens);
251
252 assertEquals(256, statement.getTime());
253 assertEquals(PitchPosition.DMw, statement.getPitchPosition());
254 assertEquals(ActionType.Move, statement.getAction().getType());
255 assertEquals(PitchPosition.MDw, statement.getActionOutcome().getPitchPosition());
256 assertEquals(STANDARD, statement.getType());
257 }
258
259 @Test
260 public void testShotAtGoal() throws ScannerException, ParserException {

Callers

nothing calls this directly

Calls 9

getTokensMethod · 0.95
getTimeMethod · 0.95
getPitchPositionMethod · 0.95
getActionMethod · 0.95
getActionOutcomeMethod · 0.95
getTypeMethod · 0.95
parseTokenListMethod · 0.80
getTypeMethod · 0.45
getPitchPositionMethod · 0.45

Tested by

no test coverage detected