예제 #1
0
 @Test
 public void testGetAcceptableTokens() {
   FinalClassCheck obj = new FinalClassCheck();
   int[] expected = {TokenTypes.CLASS_DEF, TokenTypes.CTOR_DEF};
   assertArrayEquals(expected, obj.getAcceptableTokens());
 }
예제 #2
0
 @Test
 public void testGetRequiredTokens() {
   FinalClassCheck checkObj = new FinalClassCheck();
   int[] expected = {TokenTypes.CLASS_DEF, TokenTypes.CTOR_DEF};
   assertArrayEquals(expected, checkObj.getRequiredTokens());
 }