()
| 121 | } |
| 122 | |
| 123 | @Test |
| 124 | public void testBallControl() throws ScannerException, ParserException { |
| 125 | List<String> tokens = getTokens("05:15 CK->Cross => M C @ AMd:Cnt"); |
| 126 | Statement statement = (Statement) new Parser().parseTokenList(tokens); |
| 127 | |
| 128 | assertEquals(STANDARD, statement.getType()); // In the current processing layer it is treated as a standard action |
| 129 | assertEquals(PitchPosition.CK, statement.getPitchPosition()); // Virtual pitch position |
| 130 | assertEquals(TacticalPosition.X.M, statement.getActionOutcome().getTacticalPosition().getX()); |
| 131 | assertEquals(TacticalPosition.Y.C, statement.getActionOutcome().getTacticalPosition().getY()); |
| 132 | assertEquals(PitchPosition.AMd, statement.getActionOutcome().getPitchPosition()); |
| 133 | assertTrue(statement.getActionOutcome().isOutcome(ActionContext.CONTROL)); |
| 134 | } |
| 135 | |
| 136 | @Test |
| 137 | public void testTransitionBlockDefinition() throws ScannerException, ParserException { |
nothing calls this directly
no test coverage detected