use of com.sun.appserv.management.config.NamedConfigElement in project Payara by payara.
the class AMXTest method checkNameMatchesJ2EEName.
/**
* Verify that getName() is the same as the 'name' property in the ObjectName.
*/
public void checkNameMatchesJ2EEName(final ObjectName childObjectName) throws Exception {
final AMX childProxy = getProxyFactory().getProxy(childObjectName, AMX.class);
if (childProxy instanceof NamedConfigElement) {
final String j2eeName = childProxy.getName();
assertEquals(j2eeName, childProxy.getName());
}
}
Aggregations