class TestTask extends InitialTestRunnable {
BigInteger dummyId;
BigInteger dummy2Id;
public void run() throws Exception {
super.run();
DummyManagedObject dummy2 = new DummyManagedObject();
dummyId = service.createReference(dummy).getId();
dummy2Id = service.createReference(dummy2).getId();
/* Make sure dummyId is smaller than dummy2Id */
if (dummyId.compareTo(dummy2Id) > 0) {
BigInteger temp = dummyId;
dummyId = dummy2Id;
dummy2Id = temp;
DummyManagedObject dummyTemp = dummy;
dummy = dummy2;
dummy2 = dummyTemp;
service.setBinding("dummy", dummy);
}
BigInteger id = dummyId;