{
getLog().debug(entry.getKey() + " -- ManagedObject == " + mo);
}
}
ManagedProperty prop = mc.getProperty("stateString");
assertNotNull("HAPartition has property stateString", prop);
MetaValue metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof String);
prop = mc.getProperty("nodeName");
assertNotNull("HAPartition has property nodeName", prop);
metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof String);
prop = mc.getProperty("partitionName");
assertNotNull("HAPartition has property partitionName", prop);
metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof String);
prop = mc.getProperty("currentViewId");
assertNotNull("HAPartition has property currentViewId", prop);
metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof Long);
prop = mc.getProperty("currentView");
assertNotNull("HAPartition has property currentView", prop);
prop = mc.getProperty("currentNodeCoordinator");
assertNotNull("HAPartition has property currentNodeCoordinator", prop);
metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof Boolean);
prop = mc.getProperty("allowSynchronousMembershipNotifications");
assertNotNull("HAPartition has property allowSynchronousMembershipNotifications", prop);
metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof Boolean);
prop = mc.getProperty("bindIntoJndi");
assertNotNull("HAPartition has property bindIntoJndi", prop);
metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof Boolean);
prop = mc.getProperty("JGroupsVersion");
assertNotNull("HAPartition has property JGroupsVersion", prop);
metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof String);
prop = mc.getProperty("cacheConfigName");
assertNotNull("HAPartition has property cacheConfigName", prop);
metaVal = prop.getValue();
assertTrue("cacheConfigName value (" + metaVal +") is instanceof SimpleValue", metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof String);
prop = mc.getProperty("channelStackName");
assertNotNull("HAPartition has property channelStackName", prop);
metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof String);
prop = mc.getProperty("stateTransferTimeout");
assertNotNull("HAPartition has property stateTransferTimeout", prop);
metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof Long);
prop = mc.getProperty("methodCallTimeout");
assertNotNull("HAPartition has property methodCallTimeout", prop);
metaVal = prop.getValue();
assertTrue(metaVal instanceof SimpleValue);
val = ((SimpleValue) metaVal).getValue();
assertNotNull(val);
assertTrue(val instanceof Long);
}