mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryDescriptorImpl.java
@Test
    public void testGetPluginAttributeDefinitionsEmpty() throws UnmarshalException
    {
        // change to return null for attribute defs
        MetaTypeMocker.registerMetaTypeAttributes(pluginServiceRef.getBundle(),
                PRODUCT_TYPE + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX, null, null, null);
        
        AttributeDefinition[] retrieved = m_SUT.getPluginAttributeDefinitions(ObjectClassDefinition.ALL);
        
        assertThat(retrieved.length, is(0));
    }
/**
     * Verify empty definitions are returned correctly.
     */
Verify empty definitions are returned correctly.
Verify empty definitions are returned correctly .
@Test
    public void testGetPluginAttributeDefinitionsEmpty() throws UnmarshalException
    {
        MetaTypeMocker.registerMetaTypeAttributes(pluginServiceRef.getBundle(),
                PRODUCT_TYPE + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX, null, null, null);
        AttributeDefinition[] retrieved = m_SUT.getPluginAttributeDefinitions(ObjectClassDefinition.ALL);
        assertThat(retrieved.length, is(0));
    }
@ Test public void testGetPluginAttributeDefinitionsEmpty ( ) throws UnmarshalException { MetaTypeMocker . registerMetaTypeAttributes ( pluginServiceRef . getBundle ( ) , PRODUCT_TYPE + FactoryObjectInternal . ATTRIBUTES_CLASS_SUFFIX , null , null , null ) ; AttributeDefinition [ ] retrieved = m_SUT . getPluginAttributeDefinitions ( ObjectClassDefinition . ALL ) ; assertThat ( retrieved . length , is ( 0 ) ) ; }
Verify empty definitions are returned correctly.
Verify empty definitions are returned correctly .
// change to return null for attribute defs