Search in sources :

Example 1 with NamedConfigElement

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());
    }
}
Also used : AMX(com.sun.appserv.management.base.AMX) NamedConfigElement(com.sun.appserv.management.config.NamedConfigElement)

Aggregations

AMX (com.sun.appserv.management.base.AMX)1 NamedConfigElement (com.sun.appserv.management.config.NamedConfigElement)1