KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hanseltest > TestJBuilder


1 package org.hanseltest;
2
3 import junit.framework.TestCase;
4 import junit.framework.Test;
5
6 import org.hansel.CoverageDecorator;
7 import jbuilder.ClassLiteral;
8
9 public class TestJBuilder extends TestCase {
10
11     public static Test suite() {
12       return new CoverageDecorator(TestJBuilder.class,
13                                    new Class JavaDoc [] { ClassLiteral.class });
14     }
15     
16     public void testX() {
17         ClassLiteral cl = new ClassLiteral();
18         assertEquals(Integer JavaDoc.class,
19                      cl.getX());
20     }
21     
22 }
23
Popular Tags