geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dain Sundstrom (JIRA)" <>
Subject [jira] Created: (GERONIMO-1635) kernel.listGBeans(pattern) does not respect default domain name
Date Fri, 17 Feb 2006 23:57:47 GMT
kernel.listGBeans(pattern) does not respect default domain name

         Key: GERONIMO-1635
     Project: Geronimo
        Type: Bug
    Versions: 1.0    
    Reporter: Dain Sundstrom
 Assigned to: Dain Sundstrom 
    Priority: Blocker
     Fix For: 1.0.1

This test fails:

    public void testListGBeans() throws Exception {
        ObjectName name = new ObjectName(":name=test");
        GBeanData gbean = new GBeanData(name, MockGBean.getGBeanInfo());
        kernel.loadGBean(gbean, getClass().getClassLoader());
        assertEquals(State.RUNNING_INDEX, kernel.getGBeanState(name));

        Set gbeans = kernel.listGBeans(name);
        assertEquals(1, gbeans.size());
        assertEquals(name, gbeans.iterator().next());

This is cause by the listGBeans method on basic kernel not adding the default domain name
to the object name query.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message