mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryConfigurationService.java
@Test
    public void testNoBaseServiceAttributeDefinitions()
    {
        MetaTypeMocker.registerMetaTypeAttributes(m_ApiBundle, 
                FactoryObject.class.getName() + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX, // service PID 
                null, null, null);
        
        AttributeDefinition[] optAttrs = m_SUT.getServiceAttributeDefinitions(ObjectClassDefinition.OPTIONAL);
        
        // should only have extended attrs
        assertThat(Arrays.asList(optAttrs), hasItems(m_ExtendedAttrsOpt));
        assertThat(optAttrs.length, is(m_ExtendedAttrsOpt.length));
        
        AttributeDefinition[] reqAttrs = m_SUT.getServiceAttributeDefinitions(ObjectClassDefinition.REQUIRED);
        
        // should only have extended attrs
        assertThat(Arrays.asList(reqAttrs), hasItems(m_ExtendedAttrsReq));
        assertThat(reqAttrs.length, is(m_ExtendedAttrsReq.length));
    }
/**
     * Verify no base service attributes defined is handled properly. 
     */
Verify no base service attributes defined is handled properly.
Verify no base service attributes defined is handled properly .
@Test
    public void testNoBaseServiceAttributeDefinitions()
    {
        MetaTypeMocker.registerMetaTypeAttributes(m_ApiBundle, 
                FactoryObject.class.getName() + FactoryObjectInternal.ATTRIBUTES_CLASS_SUFFIX, 
                null, null, null);
        AttributeDefinition[] optAttrs = m_SUT.getServiceAttributeDefinitions(ObjectClassDefinition.OPTIONAL);
        assertThat(Arrays.asList(optAttrs), hasItems(m_ExtendedAttrsOpt));
        assertThat(optAttrs.length, is(m_ExtendedAttrsOpt.length));
        AttributeDefinition[] reqAttrs = m_SUT.getServiceAttributeDefinitions(ObjectClassDefinition.REQUIRED);
        assertThat(Arrays.asList(reqAttrs), hasItems(m_ExtendedAttrsReq));
        assertThat(reqAttrs.length, is(m_ExtendedAttrsReq.length));
    }
@ Test public void testNoBaseServiceAttributeDefinitions ( ) { MetaTypeMocker . registerMetaTypeAttributes ( m_ApiBundle , FactoryObject . class . getName ( ) + FactoryObjectInternal . ATTRIBUTES_CLASS_SUFFIX , null , null , null ) ; AttributeDefinition [ ] optAttrs = m_SUT . getServiceAttributeDefinitions ( ObjectClassDefinition . OPTIONAL ) ; assertThat ( Arrays . asList ( optAttrs ) , hasItems ( m_ExtendedAttrsOpt ) ) ; assertThat ( optAttrs . length , is ( m_ExtendedAttrsOpt . length ) ) ; AttributeDefinition [ ] reqAttrs = m_SUT . getServiceAttributeDefinitions ( ObjectClassDefinition . REQUIRED ) ; assertThat ( Arrays . asList ( reqAttrs ) , hasItems ( m_ExtendedAttrsReq ) ) ; assertThat ( reqAttrs . length , is ( m_ExtendedAttrsReq . length ) ) ; }
Verify no base service attributes defined is handled properly.
Verify no base service attributes defined is handled properly .
// service PID  // should only have extended attrs // should only have extended attrs