mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/TestAbstractFactoryObject.java
private void mockExtensions()
    {
        ExtensionMocker.stub(m_Extension1, Extension1.class);
        ExtensionMocker.stub(m_Extension2, Extension2.class);
        
        Set<Extension<?>> extensions = new HashSet<>();
        extensions.add(m_Extension1);
        extensions.add(m_Extension2);
        
        when(m_FactoryProxy.getExtensions()).thenReturn(extensions);
    }
/**
     * Mock the factory object to have 2 extensions, {@link Extension1} and {@link Extension2}.
     */
Mock the factory object to have 2 extensions,  Extension1 and  Extension2.
Mock the factory object to have 2 extensions Extension1 and Extension2 .
private void mockExtensions()
    {
        ExtensionMocker.stub(m_Extension1, Extension1.class);
        ExtensionMocker.stub(m_Extension2, Extension2.class);
        Set<Extension<?>> extensions = new HashSet<>();
        extensions.add(m_Extension1);
        extensions.add(m_Extension2);
        when(m_FactoryProxy.getExtensions()).thenReturn(extensions);
    }
private void mockExtensions ( ) { ExtensionMocker . stub ( m_Extension1 , Extension1 . class ) ; ExtensionMocker . stub ( m_Extension2 , Extension2 . class ) ; Set < Extension < ? > > extensions = new HashSet < > ( ) ; extensions . add ( m_Extension1 ) ; extensions . add ( m_Extension2 ) ; when ( m_FactoryProxy . getExtensions ( ) ) . thenReturn ( extensions ) ; }
Mock the factory object to have 2 extensions, {@link Extension1} and {@link Extension2}.
Mock the factory object to have 2 extensions { @link Extension1 } and { @link Extension2 } .