test.currentTestCase.expectedSuccess, test.currentTestCase.published);
assertFalse("post-publish event has not yet been fired for this artifact",
test.currentTestCase.postTriggerFired);
// test the "status" attribute of the post- event.
EndArtifactPublishEvent endEvent = (EndArtifactPublishEvent) event;
assertEquals("status bit is set correctly", test.currentTestCase.expectedSuccess,
endEvent.isSuccessful());
String expectedStatus = test.currentTestCase.expectedSuccess ? "successful" : "failed";
assertEquals("status attribute is set to correct value", expectedStatus, endEvent
.getAttributes().get("status"));
// increment the call counter in the wrapper test
test.currentTestCase.postTriggerFired = true;
++test.postTriggers;