KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > displaytag > tags > TableTagExtraInfoTest


1 package org.displaytag.tags;
2
3 import junit.framework.TestCase;
4
5
6 /**
7  * Test case for org.displaytag.tags.TableTagExtraInfo.
8  * @author Fabrizio Giustina
9  * @version $Revision: 763 $ ($Author: fgiust $)
10  */

11 public class TableTagExtraInfoTest extends TestCase
12 {
13
14     /**
15      * @see junit.framework.TestCase#getName()
16      */

17     public String JavaDoc getName()
18     {
19         return getClass().getName() + "." + super.getName();
20     }
21
22     /**
23      * Test for isJavaId().
24      */

25     public final void testIsJavaIdValid()
26     {
27         assertTrue(TableTagExtraInfo.isJavaId("table"));
28     }
29
30     /**
31      * Test for isJavaId().
32      */

33     public final void testIsJavaIdEnum()
34     {
35         assertFalse(TableTagExtraInfo.isJavaId("enum"));
36     }
37
38     /**
39      * Test for isJavaId().
40      */

41     public final void testIsJavaIdSpace()
42     {
43         assertFalse(TableTagExtraInfo.isJavaId("invalid x"));
44     }
45
46     /**
47      * Test for isJavaId().
48      */

49     public final void testIsJavaIdEsclamationMark()
50     {
51         assertFalse(TableTagExtraInfo.isJavaId("invalid!"));
52     }
53
54 }
Popular Tags