01: package org.hanseltest;
02:
03: import junit.framework.Test;
04: import junit.framework.TestCase;
05:
06: import org.hansel.CoverageDecorator;
07:
08: /**
09: * 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 = new CoverageDecorator(
20: TestPrivateConstructor.class,
21: new Class[] { CoverPrivateConstructor.class });
22:
23: return result;
24: }
25:
26: public void testNothing() {
27: }
28: }
|