[jbpm-dev] [Design of JBoss jBPM] - Re: PostgeSQL runs take too long

alex.guizar@jboss.com do-not-reply at jboss.com
Thu Sep 11 11:03:49 EDT 2008


It ain't configuration, it is the AbstractDbTestCase code:

http://anonsvn.jboss.org/repos/jbpm/jbpm3/trunk/modules/core/src/main/java/org/jbpm/db/AbstractDbTestCase.java

public void setUp() throws Exception {
  | 		createSchema(); // HERE
  | 		createJbpmContext();
  | 		initializeMembers();
  | }
  | 
  | 	public void tearDown() throws Exception {
  | 		resetMembers();
  | 		closeJbpmContext();
  | 		dropSchema(); // AND HERE
  | 		super.tearDown();
  | 	}
Note however that removing the above lines will be a challenge because many tests depend on an empty database. Perhaps we could simply clear the tables instead of dropping them? Of course that would imply caring about constraint violations. Not an easy way out either. 

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

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



More information about the jbpm-dev mailing list