KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > instantiation > DefaultInstantiatorTest


1 package org.jbpm.instantiation;
2
3 import org.jbpm.instantiation.DefaultInstantiator;
4
5 import junit.framework.*;
6
7 public class DefaultInstantiatorTest extends TestCase {
8   
9   public DefaultInstantiator defaultInstantiator = new DefaultInstantiator();
10   
11   public static class DefaultClassWithDefaultConstructor {}
12
13   public void testDefaultConstructor() {
14     DefaultClassWithDefaultConstructor dcwdc = (DefaultClassWithDefaultConstructor) defaultInstantiator.instantiate(DefaultClassWithDefaultConstructor.class, null);
15     assertNotNull(dcwdc);
16   }
17 }
18
Popular Tags