KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > verge > util > url > config > test > URLConfigFactoryTest


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.verge.util.url.config.test;
8
9
10 import com.inversoft.junit.WebTestCase;
11 import com.inversoft.verge.util.url.config.URLConfigFactory;
12
13
14 /**
15  * <p>
16  * This class contains the tests for the URL config factory
17  * </p>
18  *
19  * @author Brian Pontarelli
20  * @since 2.0
21  * @version 2.0
22  */

23 public class URLConfigFactoryTest extends WebTestCase {
24
25     /**
26      * Constructor for URLConfigFactoryTest.
27      *
28      * @param name
29      */

30     public URLConfigFactoryTest(String JavaDoc name) {
31         super(name);
32         setLocal(true);
33     }
34
35
36     public void testAll() {
37         URLConfigFactory factory = new URLConfigFactory();
38         assertEquals("Should always return same builder", factory.createBuilder(),
39             factory.createBuilder());
40         assertTrue("Should not always return same registry",
41             factory.createRegistry() != factory.createRegistry());
42     }
43 }
44
Popular Tags