[jbpm-dev] [Design of JBoss jBPM] - running the test suite on spring

tom.baeyens@jboss.com do-not-reply at jboss.com
Tue Mar 31 03:38:10 EDT 2009


2 parts of the puzzle are already figured out:

1) Configuration delegates to a subclass internally.  So 
new Configuration("spring") 
creates and delegates to a SpringConfiguration, which can build a specialized SpringProcessEngine

2) Maven properties are passed as system properties.  So 

public class PropertyTest extends TestCase {
  | 	
  |   public void testProperty() {
  |     System.out.println(System.getProperty("jbpm.cfg.type"));
  |   }
  | 
  | }
  | 

can be run like this

C:\wsjbpm4\jbpm4\modules\test-pojo>mvn -Dtest=PropertyTest -Djbpm.cfg.type=spring clean test
  | 
  | ...
  | 
  | Running org.jbpm.test.activities.PropertyTest
  | spring
  | Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
  | 
  | Results :
  | 
  | Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
  | 
  | [INFO] ------------------------------------------------------------------------
  | [INFO] BUILD SUCCESSFUL
  | [INFO] ------------------------------------------------------------------------
  | ...
  | 


what else do we need ?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222216#4222216

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222216



More information about the jbpm-dev mailing list