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

Method testGoalSaveCatch

src/test/java/org/fgn/ParserTest.java:92–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90 }
91
92 @Test
93 public void testGoalSaveCatch() throws ScannerException, ParserException {
94
95 Statement parsedStatement = parseStatement(GS_CATCH);
96
97 assertEquals(ActionOutcome.getEntity("GS"), parsedStatement.getActionOutcome());
98 assertEquals(Coordinates.getEntity("Dg"), parsedStatement.getStateOut().getSpace());
99 assertFalse(parsedStatement.getStateOut().isSamePossesion());
100 }
101
102 @Test
103 public void testGoalAttempt() throws ScannerException, ParserException {

Callers

nothing calls this directly

Calls 7

parseStatementMethod · 0.95
getEntityMethod · 0.95
getActionOutcomeMethod · 0.95
getEntityMethod · 0.95
getStateOutMethod · 0.95
getSpaceMethod · 0.80
isSamePossesionMethod · 0.80

Tested by

no test coverage detected