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

Method testCornerKickExecution

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

Source from the content-addressed store, hash-verified

109 }
110
111 @Test
112 public void testCornerKickExecution() throws ScannerException, ParserException {
113 List<String> tokens = getTokens("05:15 CK->Cross => M C @ AMd");
114 Statement statement = (Statement) new Parser().parseTokenList(tokens);
115
116 assertEquals(STANDARD, statement.getType()); // In the current processing layer it is treated as a standard action
117 assertEquals(PitchPosition.CK, statement.getPitchPosition()); // Virtual pitch position
118 assertEquals(TacticalPosition.X.M, statement.getActionOutcome().getTacticalPosition().getX());
119 assertEquals(TacticalPosition.Y.C, statement.getActionOutcome().getTacticalPosition().getY());
120 assertEquals(PitchPosition.AMd, statement.getActionOutcome().getPitchPosition());
121 }
122
123 @Test
124 public void testBallControl() throws ScannerException, ParserException {

Callers

nothing calls this directly

Calls 9

getTokensMethod · 0.95
getTypeMethod · 0.95
getPitchPositionMethod · 0.95
getActionOutcomeMethod · 0.95
parseTokenListMethod · 0.80
getXMethod · 0.65
getYMethod · 0.65
getTacticalPositionMethod · 0.45
getPitchPositionMethod · 0.45

Tested by

no test coverage detected