1 package org.displaytag.tags; 2 3 import junit.framework.TestCase; 4 5 6 11 public class TableTagExtraInfoTest extends TestCase 12 { 13 14 17 public String getName() 18 { 19 return getClass().getName() + "." + super.getName(); 20 } 21 22 25 public final void testIsJavaIdValid() 26 { 27 assertTrue(TableTagExtraInfo.isJavaId("table")); 28 } 29 30 33 public final void testIsJavaIdEnum() 34 { 35 assertFalse(TableTagExtraInfo.isJavaId("enum")); 36 } 37 38 41 public final void testIsJavaIdSpace() 42 { 43 assertFalse(TableTagExtraInfo.isJavaId("invalid x")); 44 } 45 46 49 public final void testIsJavaIdEsclamationMark() 50 { 51 assertFalse(TableTagExtraInfo.isJavaId("invalid!")); 52 } 53 54 } | Popular Tags |