Package org.apache.avalon.fortress

Examples of org.apache.avalon.fortress.MetaInfoEntry.containsRole()


        try
        {
            MetaInfoEntry entry = new MetaInfoEntry( m_componentClass, m_properties, m_dependencies );
            entry.addRole( Role1.class.getName() );
            entry.containsRole( null );
            fail( "Did not throw an exception" );
        }
        catch ( NullPointerException npe )
        {
            // SUCCESS!
View Full Code Here


        assertEquals( "componentClass:",
            metaEntry.getComponentClass(), Class.forName( className ) );

        for ( int i = 0; i < roles.length; i++ )
        {
            assertTrue( "Role:", metaEntry.containsRole( roles[i] ) );
        }
        assertEquals( "Handler:",
            metaEntry.getHandlerClass(), Class.forName( handlerClassname ) );
    }
}
View Full Code Here

        assertEquals( "componentClass:",
            metaEntry.getComponentClass(), Class.forName( className ) );

        for ( int i = 0; i < roles.length; i++ )
        {
            assertTrue( "Role:", metaEntry.containsRole( roles[i] ) );
        }
        assertEquals( "Handler:",
            metaEntry.getHandlerClass(), Class.forName( handlerClassname ) );
    }
}
View Full Code Here

        try
        {
            MetaInfoEntry entry = new MetaInfoEntry( m_componentClass, m_properties, m_dependencies );
            entry.addRole( Role1.class.getName() );
            entry.containsRole( null );
            fail( "Did not throw an exception" );
        }
        catch ( NullPointerException npe )
        {
            // SUCCESS!
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.