@Test public void testCallVisitToken() throws Exception { TrailingCommentCheck check = new TrailingCommentCheck(); try { check.visitToken(new DetailAST()); Assert.fail(); } catch (IllegalStateException ex) { assertEquals("visitToken() shouldn't be called.", ex.getMessage()); } }
@Test public void testGetAcceptableTokens() { TrailingCommentCheck checkObj = new TrailingCommentCheck(); assertArrayEquals(ArrayUtils.EMPTY_INT_ARRAY, checkObj.getAcceptableTokens()); }