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

        AttributeDefinition[] attrs = m_SUT.getServiceAttributeDefinitions(ObjectClassDefinition.REQUIRED);
        
        assertThat(Arrays.asList(attrs), hasItems(m_ServiceAttrsReq)); 
        assertThat(Arrays.asList(attrs), hasItems(m_ExtendedAttrsReq)); 
        assertThat(attrs.length, is(m_ServiceAttrsReq.length + m_ExtendedAttrsReq.length));  
    }
/**
     * Verify both service and extended required attributes are returned.
     */
Verify both service and extended required attributes are returned.
Verify both service and extended required attributes are returned .
@Test
    public void testGetServiceAttributeDefinitionsRequired()
    {                
        MetaTypeMocker.registerMetaTypeAttributes(m_ApiBundle, 
                FactoryObject.class.getName() + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX, 
                m_ServiceAttrsReq, null, null);
        AttributeDefinition[] attrs = m_SUT.getServiceAttributeDefinitions(ObjectClassDefinition.REQUIRED);
        assertThat(Arrays.asList(attrs), hasItems(m_ServiceAttrsReq)); 
        assertThat(Arrays.asList(attrs), hasItems(m_ExtendedAttrsReq)); 
        assertThat(attrs.length, is(m_ServiceAttrsReq.length + m_ExtendedAttrsReq.length));  
    }
@ Test public void testGetServiceAttributeDefinitionsRequired ( ) { MetaTypeMocker . registerMetaTypeAttributes ( m_ApiBundle , FactoryObject . class . getName ( ) + FactoryObjectInternal . ATTRIBUTES_CLASS_SUFFIX , m_ServiceAttrsReq , null , null ) ; AttributeDefinition [ ] attrs = m_SUT . getServiceAttributeDefinitions ( ObjectClassDefinition . REQUIRED ) ; assertThat ( Arrays . asList ( attrs ) , hasItems ( m_ServiceAttrsReq ) ) ; assertThat ( Arrays . asList ( attrs ) , hasItems ( m_ExtendedAttrsReq ) ) ; assertThat ( attrs . length , is ( m_ServiceAttrsReq . length + m_ExtendedAttrsReq . length ) ) ; }
Verify both service and extended required attributes are returned.
Verify both service and extended required attributes are returned .
// service PID 