KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > mvc > view > test > HtmlViewToolkitTest


1 /*
2  * Copyright (c) 2003, Inversoft Corporation, All Rights Reserved
3  */

4 package com.inversoft.verge.mvc.view.test;
5
6
7 import junit.framework.TestCase;
8
9 import com.inversoft.verge.mvc.view.HtmlViewToolkit;
10
11
12 /**
13  * <p>
14  * This class tests the toolkit methods. This does not test
15  * the methods that generate tags because these are tested
16  * by the TestCases for individual tags
17  * </p>
18  *
19  * @author Brian Pontarelli
20  * @since 2.0
21  * @version 2.0
22  */

23 public class HtmlViewToolkitTest extends TestCase {
24
25     /**
26      * Constructor for HtmlViewToolkitTest.
27      * @param name
28      */

29     public HtmlViewToolkitTest(String JavaDoc name) {
30         super(name);
31     }
32
33
34     /**
35      * Tests that the createUniqueName method works correctly
36      */

37     public void testCreateUniqueName() {
38         for (int i = 0; i < 10; i++) {
39             assertEquals("Should be _input-"+i, HtmlViewToolkit.createUniqueName(),
40                 "_input-"+i);
41         }
42     }
43 }
Popular Tags