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

Method testCornerKickBlock

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

Source from the content-addressed store, hash-verified

87 }
88
89 @Test
90 public void testCornerKickBlock() throws ScannerException, ParserException {
91 List<String> tokens = getTokens(":set T: Corner");
92 Directive directive = (Directive) new Parser().parseTokenList(tokens);
93
94 assertEquals(SET_PIECE_EXECUTION_BLOCK, directive.getType());
95 assertEquals("T", directive.getTeam());
96 assertEquals(CORNER_KICK, directive.getSetPiece());
97 }
98
99 @Test
100 public void defaultExecution() throws ScannerException, ParserException {

Callers

nothing calls this directly

Calls 5

getTokensMethod · 0.95
getTypeMethod · 0.95
getTeamMethod · 0.95
getSetPieceMethod · 0.95
parseTokenListMethod · 0.80

Tested by

no test coverage detected