KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jbpm.instantiation;
2
3 import org.jbpm.instantiation.ConfigurationPropertyInstantiator;
4
5 import junit.framework.*;
6
7 public class ConfigurationPropertyInstantiatorTest extends TestCase {
8
9   public ConfigurationPropertyInstantiator configurationPropertyInstantiator= new ConfigurationPropertyInstantiator();
10   
11   public static class ConfigurationPropertyClass {
12     String JavaDoc configuration = null;
13     public void setConfiguration( String JavaDoc configuration ) {
14       this.configuration = configuration;
15     }
16   }
17
18   public void testConstructorInstantiator() {
19     String JavaDoc configuration = "hello";
20     ConfigurationPropertyClass o = (ConfigurationPropertyClass) configurationPropertyInstantiator.instantiate(ConfigurationPropertyClass.class, configuration);
21     assertEquals("hello", o.configuration );
22   }
23
24   /*
25   public static class ConfigurationPropertySubClass extends ConfigurationPropertyClass {
26   }
27
28   public void testConstructorInstantiatorSubClass() {
29     String configuration = "hello";
30     ConfigurationPropertySubClass o = (ConfigurationPropertySubClass) configurationPropertyInstantiator.instantiate(ConfigurationPropertySubClass.class, configuration);
31     assertEquals("hello", o.configuration );
32   }
33   */

34 }
35
Popular Tags