KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hanseltest > TestPrivateConstructor


1 package org.hanseltest;
2
3 import junit.framework.Test;
4 import junit.framework.TestCase;
5
6 import org.hansel.CoverageDecorator;
7
8 /**
9  * Empty private constructors should not cause coverage failures,
10  * because they are used to prevent classes from beeing instantiated.
11  */

12 public class TestPrivateConstructor extends TestCase {
13
14     /**
15      * Returns a coverage decorator for this test.
16      * @return CoverageTest.
17      */

18     public static Test suite() {
19         CoverageDecorator result =
20                 new CoverageDecorator(TestPrivateConstructor.class,
21                               new Class JavaDoc[] {CoverPrivateConstructor.class});
22
23         return result;
24     }
25
26     public void testNothing() {
27     }
28 }
29
Popular Tags