[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, 5 months
[JBoss JIRA] Created: (JBPM-1341) Basic Activity
by Thomas Diesler (JIRA)
Basic Activity
--------------
Key: JBPM-1341
URL: http://jira.jboss.com/jira/browse/JBPM-1341
Project: JBoss jBPM
Issue Type: Task
Security Level: Public (Everyone can see)
Components: API
Reporter: Thomas Diesler
Assigned To: Thomas Diesler
Fix For: API 1.0.0.Alpha
Support a basic node activity like this
<process-definition>
<start-state>
<transition to='stateA' />
</start-state>
<state name='stateA'>
<event type='node-enter'>
<action class='org.jboss.bpm.samples.activity.BasicActivity' />
</event>
<transition to='end'/>
</state>
<end-state name='end' />
</process-definition>
public class BasicActivity implements Activity
{
public void execute(Node node, Context ctx)
{
String name = node.getName();
ctx.addAttachment(String.class, "Activity on: " + name);
}
}
/**
* Test that the execution context variables set by the Activity
* are visible to the client.
*/
public void testBasicActivity() throws Exception
{
// Create a ProcessDefinition through the ProcessDefinitionManager
ProcessDefinitionManager pdm = ProcessDefinitionManager.locateProcessDefinitionManager();
ProcessDefinition pd = pdm.createProcessDefinition(jpdl);
// Create an Execution through the ProcessDefinition
Execution ex = pd.createExecution();
assertEquals(pd.getStartNode(), ex.getNode());
// Signal the execution
ex.signal();
assertEquals(pd.findNode("stateA"), ex.getNode());
// Verify context variables
String msg = ex.getContext().getAttachment(String.class);
assertEquals("Activity on: stateA", msg);
// Signal the execution
ex.signal();
assertEquals(pd.findNode("end"), ex.getNode());
}
--
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, 5 months