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

Method testThrowInBlock

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

Source from the content-addressed store, hash-verified

77 }
78
79 @Test
80 public void testThrowInBlock() throws ScannerException, ParserException {
81 List<String> tokens = getTokens(":set L: ThrowIn");
82 Directive directive = (Directive) new Parser().parseTokenList(tokens);
83
84 assertEquals(SET_PIECE_EXECUTION_BLOCK, directive.getType());
85 assertEquals("L", directive.getTeam());
86 assertEquals(THROW_IN, directive.getSetPiece());
87 }
88
89 @Test
90 public void testCornerKickBlock() 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