1   // Copyright (c) 2003, Chad Woolley, All rights reserved.
2   
3   package org.hanseltest;
4   
5   import junit.framework.Test;
6   import junit.framework.TestCase;
7   import org.hansel.CoverageDecorator;
8   
9   
10  /***
11   * Empty private constructors should not cause coverage failures, because they
12   * are used to prevent classes from beeing instantiated.
13   */
14  public class TestPrivateConstructor extends TestCase {
15      /***
16       * Returns a coverage decorator for this test.
17       *
18       * @return CoverageTest.
19       */
20      public static Test suite() {
21          CoverageDecorator result =
22              new CoverageDecorator(TestPrivateConstructor.class,
23                  new Class[] {CoverPrivateConstructor.class});
24  
25          return result;
26      }
27  
28      /***
29       * Testing Hansel
30       */
31      public void testNothing() {
32          CoverPrivateConstructor coverPrivateConstructor =
33              new CoverPrivateConstructor();
34      }
35  }