[JBoss JIRA] Created: (JBPM-1203) Remove aggregation tests
by Thomas Diesler (JIRA)
Remove aggregation tests
------------------------
Key: JBPM-1203
URL: http://jira.jboss.com/jira/browse/JBPM-1203
Project: JBoss jBPM
Issue Type: Task
Security Level: Public (Everyone can see)
Components: jPDL 3
Reporter: Thomas Diesler
These types of tests are unnecessary
public class AllTests extends TestCase {
public static Test suite() {
try {
TestSuite suite = new TestSuite("org.jbpm");
//$JUnit-BEGIN$
suite.addTest(AllPojoTests.suite());
suite.addTest(AllDbTests.suite());
suite.addTestSuite(SerializabilityTest.class);
//$JUnit-END$
return suite;
} catch (Throwable t) {
t.printStackTrace();
return null;
}
}
ant as well as maven supports includes/excludes that are easier to maintain
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months
[JBoss JIRA] Created: (JBPM-1251) Basic node sequence
by Thomas Diesler (JIRA)
Basic node sequence
-------------------
Key: JBPM-1251
URL: http://jira.jboss.com/jira/browse/JBPM-1251
Project: JBoss jBPM
Issue Type: Sub-task
Security Level: Public (Everyone can see)
Reporter: Thomas Diesler
// Locate the ProcessEngine
ProcessEngine engine = ProcessEngineLocator.locateProcessEngine();
// Create a ProcessDefinition through the ProcessDefinitionManager
ProcessDefinitionManager pdm = engine.getProcessDefinitionManager();
ProcessDefinition pd = pdm.createProcessDefinition(jpdl);
// Create a ProcessInstance through the ProcessInstanceManager
ProcessInstanceManager pim = engine.getProcessInstanceManager();
ProcessInstance pi = pim.createProcessInstance(pd);
// Create an Execution through the ExecutionManager
ExecutionManager pem = engine.getExecutionManager();
Execution ex = pem.createExecution(pi);
// Signal the execution
ex.signal();
// Verify the nodes
Node expNode = pd.findNode("stateA");
Node wasNode = ex.getNode();
assertEquals(expNode, wasNode);
assertEquals(expNode.getName(), wasNode.getName());
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 6 months