mil.dod.th.ose.core/test/mil/dod/th/ose/core/factory/api/TestFactoryRegistry.java
private ComponentInstance mockComponentInstance(UUID uuid, String name, String pid) throws
        IllegalArgumentException, FactoryObjectInformationException
    {
        ComponentInstance instance = mock(ComponentInstance.class);

        FactoryObjectInternal fObj = createMockFactObj(uuid, name, pid);
        when(instance.getInstance()).thenReturn(fObj);

        return instance;
    }
/**
     * Method will create a mock FactoryObjectInternal object with the given parameters and return a
     * mocked ComponentInstace object that will return the created mocked internal object.
     * @param uuid
     *  the uuid that the FactoryObjectInternal should have
     * @param name
     *  the name of the FactoryObjectInternal should have
     * @param pid
     *  the pid of the FactoryObjectInternal should have
     * @return
     *  a component instance that returns a FactoryObjectInternal with the given parameters
     */
Method will create a mock FactoryObjectInternal object with the given parameters and return a
mocked ComponentInstace object that will return the created mocked internal object.
@param uuid
the uuid that the FactoryObjectInternal should have
@param name
the name of the FactoryObjectInternal should have
@param pid
the pid of the FactoryObjectInternal should have
@return
a component instance that returns a FactoryObjectInternal with the given parameters
Method will create a mock FactoryObjectInternal object with the given parameters and return a mocked ComponentInstace object that will return the created mocked internal object . @param uuid the uuid that the FactoryObjectInternal should have @param name the name of the FactoryObjectInternal should have @param pid the pid of the FactoryObjectInternal should have @return a component instance that returns a FactoryObjectInternal with the given parameters
private ComponentInstance mockComponentInstance(UUID uuid, String name, String pid) throws
        IllegalArgumentException, FactoryObjectInformationException
    {
        ComponentInstance instance = mock(ComponentInstance.class);
        FactoryObjectInternal fObj = createMockFactObj(uuid, name, pid);
        when(instance.getInstance()).thenReturn(fObj);
        return instance;
    }
private ComponentInstance mockComponentInstance ( UUID uuid , String name , String pid ) throws IllegalArgumentException , FactoryObjectInformationException { ComponentInstance instance = mock ( ComponentInstance . class ) ; FactoryObjectInternal fObj = createMockFactObj ( uuid , name , pid ) ; when ( instance . getInstance ( ) ) . thenReturn ( fObj ) ; return instance ; }
Method will create a mock FactoryObjectInternal object with the given parameters and return a
 mocked ComponentInstace object that will return the created mocked internal object.
Method will create a mock FactoryObjectInternal object with the given parameters and return a mocked ComponentInstace object that will return the created mocked internal object .