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

Method testPossessorDefinition

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

Source from the content-addressed store, hash-verified

143 }
144
145 @Test
146 public void testPossessorDefinition() throws ScannerException, ParserException {
147 List<String> tokens = getTokens(":possessor D C");
148 Directive directive = (Directive) new Parser().parseTokenList(tokens);
149
150 assertEquals(POSSESSOR_DEFINITION, directive.getType());
151 assertEquals(TacticalPosition.X.D, directive.getTacticalPosition().getX());
152 assertEquals(TacticalPosition.Y.C, directive.getTacticalPosition().getY());
153 }
154
155 @Test
156 public void testBreakDirective() throws ScannerException, ParserException {

Callers

nothing calls this directly

Calls 6

getTokensMethod · 0.95
getTypeMethod · 0.95
getTacticalPositionMethod · 0.95
parseTokenListMethod · 0.80
getXMethod · 0.65
getYMethod · 0.65

Tested by

no test coverage detected