mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryDescriptorImpl.java
@Test
    public void testGetFactoryObjectAttributes()
    {
        AttributeDefinition[] defs = AttributeDefinitionMocker.mockArrayAll();
        
        MetaTypeMocker.registerMetaTypeAttributes(m_MetaTypeProviderBundle.getBundle(), m_SUT, null, null, defs);
        
        AttributeDefinition[] ans = m_SUT.getAttributeDefinitions(ObjectClassDefinition.ALL);
        
        assertThat(ans, is(defs));        
    }
/**
     * Verify that attributes can be retrieved for a given factory and bundle
     */
Verify that attributes can be retrieved for a given factory and bundle
Verify that attributes can be retrieved for a given factory and bundle
@Test
    public void testGetFactoryObjectAttributes()
    {
        AttributeDefinition[] defs = AttributeDefinitionMocker.mockArrayAll();
        MetaTypeMocker.registerMetaTypeAttributes(m_MetaTypeProviderBundle.getBundle(), m_SUT, null, null, defs);
        AttributeDefinition[] ans = m_SUT.getAttributeDefinitions(ObjectClassDefinition.ALL);
        assertThat(ans, is(defs));        
    }
@ Test public void testGetFactoryObjectAttributes ( ) { AttributeDefinition [ ] defs = AttributeDefinitionMocker . mockArrayAll ( ) ; MetaTypeMocker . registerMetaTypeAttributes ( m_MetaTypeProviderBundle . getBundle ( ) , m_SUT , null , null , defs ) ; AttributeDefinition [ ] ans = m_SUT . getAttributeDefinitions ( ObjectClassDefinition . ALL ) ; assertThat ( ans , is ( defs ) ) ; }
Verify that attributes can be retrieved for a given factory and bundle
Verify that attributes can be retrieved for a given factory and bundle