Details
-
Type:
Enhancement
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 0.2
-
Fix Version/s: 0.3
-
Component/s: None
-
Labels:None
-
Estimated Difficulty:Low
Description
Tests that currently look like...
public class HelpDeskTests {
|
|
|
private BPMMixIn bpm;
|
private HTTPMixIn http;
|
|
|
@Test
|
public void testHelpDesk() throws Exception {
|
if (bpm.startTaskServer("Developer", "User")) {
|
try {
|
http.postResourceAndTestXML("http://localhost:18001/HelpDeskService", "/xml/soap-request.xml", "/xml/soap-response.xml");
|
boolean keepWorking = true;
|
while (keepWorking) {
|
keepWorking = bpm.completeTasksForUsers("Developer", "User");
|
}
|
} finally {
|
bpm.stopTaskServer();
|
}
|
}
|
}
|
}
|
Would end up looking like...
public class HelpDeskTests {
|
|
|
private BPMMixIn bpm;
|
private HTTPMixIn http;
|
|
|
@Test
|
public void testHelpDesk() throws Exception {
|
http.postResourceAndTestXML("http://localhost:18001/HelpDeskService", "/xml/soap-request.xml", "/xml/soap-response.xml");
|
boolean keepWorking = true;
|
while (keepWorking) {
|
keepWorking = bpm.completeTasksForUsers("Developer", "User");
|
}
|
}
|
}
|
Might also be able to incorporate the completeTasksForUsers in the MixIn lifecycle.