this.incrementValue = incrementValue;
}
public void run() {
AssertionError error = null;
ProfileReport report = SimpleTestListener.report;
// Check to see if this is a report we care about by checking
// the owner of this task.
Identity owner = report.getTaskOwner();
boolean update = owner.equals(positiveOwner);
if (!update && !owner.equals(negativeOwner)) {
return;
}
if (update) {
try {
Long value = report.getUpdatedTaskCounters().get(name);
System.err.println("got counter value of " + value);
assertEquals(incrementValue, value.intValue());
} catch (AssertionError e) {
error = e;
}
} else {
try {
Long value = report.getUpdatedTaskCounters().get(name);
assertNull("expected no value", value);
} catch (AssertionError e) {
error = e;
}
}