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

Method testShotAtGoal

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

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected