Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjwalls committed Jul 12, 2024
1 parent 5aeed2a commit a696523
Showing 1 changed file with 20 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,29 +168,28 @@ public boolean continueExecution() {
// If we got a Notification, test that the CompositeData can create a MemoryNotificationInfo
if (!messageReceived) {
throw new TestFailure("No Notification received.");
} else {
result = MemoryNotificationInfo.from(from001Listener.data.get());
try {
ObjectName poolObjectName = new ObjectName(monitor.getName(poolObject));
ObjectName resultObjectName = new ObjectName(
ManagementFactory.MEMORY_POOL_MXBEAN_DOMAIN_TYPE +
",name=" + result.getPoolName());

log.display("poolObjectName : " + poolObjectName +
" resultObjectName : " + resultObjectName);

if (!poolObjectName.equals(resultObjectName)) {
log.complain("FAILURE 3.");
log.complain("Wrong pool name : " + resultObjectName +
", expected : " + poolObjectName);
testFailed = true;
}

} catch (Exception e) {
log.complain("Unexpected exception " + e);
e.printStackTrace(log.getOutStream());
}
result = MemoryNotificationInfo.from(from001Listener.data.get());
try {
ObjectName poolObjectName = new ObjectName(monitor.getName(poolObject));
ObjectName resultObjectName = new ObjectName(
ManagementFactory.MEMORY_POOL_MXBEAN_DOMAIN_TYPE +
",name=" + result.getPoolName());

log.display("poolObjectName : " + poolObjectName +
" resultObjectName : " + resultObjectName);

if (!poolObjectName.equals(resultObjectName)) {
log.complain("FAILURE 3.");
log.complain("Wrong pool name : " + resultObjectName +
", expected : " + poolObjectName);
testFailed = true;
}

} catch (Exception e) {
log.complain("Unexpected exception " + e);
e.printStackTrace(log.getOutStream());
testFailed = true;
}
if (testFailed) {
throw new TestFailure("TEST FAILED. See log.");
Expand Down

0 comments on commit a696523

Please sign in to comment.