()
| 257 | } |
| 258 | |
| 259 | @Test |
| 260 | public void testShotAtGoal() throws ScannerException, ParserException { |
| 261 | List<String> tokens = getTokens("01:47 Ap->Shoot => G"); |
| 262 | Statement statement = (Statement) new Parser().parseTokenList(tokens); |
| 263 | |
| 264 | assertEquals(107, statement.getTime()); |
| 265 | assertEquals(PitchPosition.Ap, statement.getPitchPosition()); |
| 266 | assertEquals(ActionType.Shoot, statement.getAction().getType()); |
| 267 | assertEquals(ActionOutcomeType.GOAL, statement.getActionOutcome().getType()); |
| 268 | } |
| 269 | |
| 270 | @Test |
| 271 | public void testActionParameter() throws ScannerException, ParserException { |
nothing calls this directly
no test coverage detected