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 configuration = null; 13 public void setConfiguration( String configuration ) { 14 this.configuration = configuration; 15 } 16 } 17 18 public void testConstructorInstantiator() { 19 String configuration = "hello"; 20 ConfigurationPropertyClass o = (ConfigurationPropertyClass) configurationPropertyInstantiator.instantiate(ConfigurationPropertyClass.class, configuration); 21 assertEquals("hello", o.configuration ); 22 } 23 24 34 } 35 | Popular Tags |