final Health expected)
throws Exception
{
txnScheduler.runTask(new TestAbstractKernelRunnable() {
public void run() throws Exception {
Health health = watchdog.getLocalNodeHealth();
if (health == null) {
fail("Expected WatchdogService.getLocalNodeHealth() " +
"to return non-null health");
}
if (!health.equals(expected)) {
fail("Expected WatchdogService.getLocalNodeHealth() " +
"to return: " + expected +
", instead received: " + health);
}
}