mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryDescriptorImpl.java
@Test
    public void testGetPluginAttributeDefinitionsBadOcd() throws UnmarshalException
    {
        MetaTypeMocker.registerMetaTypeAttributesNoOcdDescription(pluginServiceRef.getBundle(),
                PRODUCT_TYPE + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX, new AttributeDefinition[]{});
        
        try
        {
            m_SUT.activate(new ImmutableMap.Builder<String, Object>()
                    .put(FactoryDescriptorImpl.KEY_SERVICE_CONTEXT, serviceContext)
                    .put(FactoryDescriptorImpl.KEY_SERVICE_REFERENCE, pluginServiceRef).build());
            fail("expected exception no OCD description.");
        }
        catch (IllegalStateException e)
        {
            
        }
    }
/**
     * Verify exception if the plug-in attr definitions are not available.
     */
Verify exception if the plug-in attr definitions are not available.
Verify exception if the plug - in attr definitions are not available .
@Test
    public void testGetPluginAttributeDefinitionsBadOcd() throws UnmarshalException
    {
        MetaTypeMocker.registerMetaTypeAttributesNoOcdDescription(pluginServiceRef.getBundle(),
                PRODUCT_TYPE + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX, new AttributeDefinition[]{});
        try
        {
            m_SUT.activate(new ImmutableMap.Builder<String, Object>()
                    .put(FactoryDescriptorImpl.KEY_SERVICE_CONTEXT, serviceContext)
                    .put(FactoryDescriptorImpl.KEY_SERVICE_REFERENCE, pluginServiceRef).build());
            fail("expected exception no OCD description.");
        }
        catch (IllegalStateException e)
        {
        }
    }
@ Test public void testGetPluginAttributeDefinitionsBadOcd ( ) throws UnmarshalException { MetaTypeMocker . registerMetaTypeAttributesNoOcdDescription ( pluginServiceRef . getBundle ( ) , PRODUCT_TYPE + FactoryObjectInternal . ATTRIBUTES_CLASS_SUFFIX , new AttributeDefinition [ ] { } ) ; try { m_SUT . activate ( new ImmutableMap . Builder < String , Object > ( ) . put ( FactoryDescriptorImpl . KEY_SERVICE_CONTEXT , serviceContext ) . put ( FactoryDescriptorImpl . KEY_SERVICE_REFERENCE , pluginServiceRef ) . build ( ) ) ; fail ( "expected exception no OCD description." ) ; } catch ( IllegalStateException e ) { } }
Verify exception if the plug-in attr definitions are not available.
Verify exception if the plug - in attr definitions are not available .