[
https://jira.jboss.org/jira/browse/JBPM-1732?page=com.atlassian.jira.plug...
]
Tom Baeyens commented on JBPM-1732:
-----------------------------------
each test must start from a clean db.
db schema does not have to be recreated between each test. but the complete db has got to
be clean. deleting all the records is also ok.
for the code on how to delete the records from the db, see
http://fisheye.jboss.com/browse/~raw,r=1871/JbpmSvn/jbpm4/pvm/trunk/modul...
Clarify the unit test strategy
------------------------------
Key: JBPM-1732
URL:
https://jira.jboss.org/jira/browse/JBPM-1732
Project: JBoss jBPM
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Core Engine
Reporter: Thomas Diesler
Fix For: jBPM 3.3.0
The AbstractDbTestCase currently has a call to createSchema() in setUp
public void setUp() throws Exception
{
log.debug("### starting " + getClass().getName() + "." +
getName() + " ####################################################");
createSchema();
createJbpmContext();
initializeMembers();
}
What assumptions can a test make on the state of the DB? What is the required cleanup
that needs to be done?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira