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

Method defaultExecution

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

Source from the content-addressed store, hash-verified

97 }
98
99 @Test
100 public void defaultExecution() throws ScannerException, ParserException {
101 List<String> tokens = getTokens("03:18 DM => F LC @ DMw");
102 Statement statement = (Statement) new Parser().parseTokenList(tokens);
103
104 assertEquals(ActionType.Default, statement.getAction().getType());
105 assertEquals(PitchPosition.DM, statement.getPitchPosition());
106 assertEquals(TacticalPosition.X.F, statement.getActionOutcome().getTacticalPosition().getX());
107 assertEquals(TacticalPosition.Y.LC, statement.getActionOutcome().getTacticalPosition().getY());
108 assertEquals(PitchPosition.DMw, statement.getActionOutcome().getPitchPosition());
109 }
110
111 @Test
112 public void testCornerKickExecution() throws ScannerException, ParserException {

Callers

nothing calls this directly

Calls 10

getTokensMethod · 0.95
getActionMethod · 0.95
getPitchPositionMethod · 0.95
getActionOutcomeMethod · 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