mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryDescriptorImpl.java
@Test
    public void testGetFactoryObjectAttributesNoMetaInformation()
    {
        when(m_MetaTypeService.getMetaTypeInformation(m_MetaTypeProviderBundle.getBundle())).thenReturn(null);
        
        AttributeDefinition[] ans = m_SUT.getAttributeDefinitions(ObjectClassDefinition.ALL);
        
        assertThat(ans.length, is(0));
    }
/**
     * Verify empty list of attributes returned if no meta type information exists.
     */
Verify empty list of attributes returned if no meta type information exists.
Verify empty list of attributes returned if no meta type information exists .
@Test
    public void testGetFactoryObjectAttributesNoMetaInformation()
    {
        when(m_MetaTypeService.getMetaTypeInformation(m_MetaTypeProviderBundle.getBundle())).thenReturn(null);
        AttributeDefinition[] ans = m_SUT.getAttributeDefinitions(ObjectClassDefinition.ALL);
        assertThat(ans.length, is(0));
    }
@ Test public void testGetFactoryObjectAttributesNoMetaInformation ( ) { when ( m_MetaTypeService . getMetaTypeInformation ( m_MetaTypeProviderBundle . getBundle ( ) ) ) . thenReturn ( null ) ; AttributeDefinition [ ] ans = m_SUT . getAttributeDefinitions ( ObjectClassDefinition . ALL ) ; assertThat ( ans . length , is ( 0 ) ) ; }
Verify empty list of attributes returned if no meta type information exists.
Verify empty list of attributes returned if no meta type information exists .