mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryConfigurationService.java
@Test
    public void testGetServiceAttributeDefinitionsNoOcdDescription()
    {
        MetaTypeMocker.registerMetaTypeAttributesNoOcdDescription(m_ApiBundle, 
                FactoryObject.class.getName() + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX, // service PID 
                m_ServiceAttrsOpt);

        try
        {
            m_SUT.getServiceAttributeDefinitions(ObjectClassDefinition.OPTIONAL);
            fail("expected because the OCD does not reflect it is a partial def.");
        }
        catch (IllegalStateException e)
        {
            
        }
    }
/**
     * Verify exception if the OCD does not have the description for being a partial def.
     */
Verify exception if the OCD does not have the description for being a partial def.
Verify exception if the OCD does not have the description for being a partial def .
@Test
    public void testGetServiceAttributeDefinitionsNoOcdDescription()
    {
        MetaTypeMocker.registerMetaTypeAttributesNoOcdDescription(m_ApiBundle, 
                FactoryObject.class.getName() + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX, 
                m_ServiceAttrsOpt);
        try
        {
            m_SUT.getServiceAttributeDefinitions(ObjectClassDefinition.OPTIONAL);
            fail("expected because the OCD does not reflect it is a partial def.");
        }
        catch (IllegalStateException e)
        {
        }
    }
@ Test public void testGetServiceAttributeDefinitionsNoOcdDescription ( ) { MetaTypeMocker . registerMetaTypeAttributesNoOcdDescription ( m_ApiBundle , FactoryObject . class . getName ( ) + FactoryObjectInternal . ATTRIBUTES_CLASS_SUFFIX , m_ServiceAttrsOpt ) ; try { m_SUT . getServiceAttributeDefinitions ( ObjectClassDefinition . OPTIONAL ) ; fail ( "expected because the OCD does not reflect it is a partial def." ) ; } catch ( IllegalStateException e ) { } }
Verify exception if the OCD does not have the description for being a partial def.
Verify exception if the OCD does not have the description for being a partial def .
// service PID 