mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/impl/TestFactoryServiceContextImpl.java
@Test
    public void testGetExtendedServiceAttributeDefs()
    {
        FactoryInternal factory = mock(FactoryInternal.class);
        AttributeDefinition[] mockArray = AttributeDefinitionMocker.mockArrayAll();
        
        when(m_FactoryServiceProxy.getExtendedServiceAttributeDefinitions(m_SUT, factory, ObjectClassDefinition.ALL))
            .thenReturn(mockArray);
        
        assertThat(m_SUT.getExtendedServiceAttributeDefinitions(factory, ObjectClassDefinition.ALL), is(mockArray));
    }
/**
     * Verify value returned matches that of the proxy.
     */
Verify value returned matches that of the proxy.
Verify value returned matches that of the proxy .
@Test
    public void testGetExtendedServiceAttributeDefs()
    {
        FactoryInternal factory = mock(FactoryInternal.class);
        AttributeDefinition[] mockArray = AttributeDefinitionMocker.mockArrayAll();
        when(m_FactoryServiceProxy.getExtendedServiceAttributeDefinitions(m_SUT, factory, ObjectClassDefinition.ALL))
            .thenReturn(mockArray);
        assertThat(m_SUT.getExtendedServiceAttributeDefinitions(factory, ObjectClassDefinition.ALL), is(mockArray));
    }
@ Test public void testGetExtendedServiceAttributeDefs ( ) { FactoryInternal factory = mock ( FactoryInternal . class ) ; AttributeDefinition [ ] mockArray = AttributeDefinitionMocker . mockArrayAll ( ) ; when ( m_FactoryServiceProxy . getExtendedServiceAttributeDefinitions ( m_SUT , factory , ObjectClassDefinition . ALL ) ) . thenReturn ( mockArray ) ; assertThat ( m_SUT . getExtendedServiceAttributeDefinitions ( factory , ObjectClassDefinition . ALL ) , is ( mockArray ) ) ; }
Verify value returned matches that of the proxy.
Verify value returned matches that of the proxy .