mil.dod.th.ose.core/test/mil/dod/th/ose/core/impl/pm/TestPowerManagerImpl.java
private FactoryObject mockFactoryObject()
    {
        FactoryObject object = mock(FactoryObject.class);
        FactoryDescriptor descriptor = mock(FactoryDescriptor.class);
        when(object.getFactory()).thenReturn(descriptor);
        
        return object;
    }
/**
     * Method to create a mocked instance of a FactoryObject.
     * @return
     *  the mocked factory object
     */
Method to create a mocked instance of a FactoryObject.
@return
the mocked factory object
Method to create a mocked instance of a FactoryObject . @return the mocked factory object
private FactoryObject mockFactoryObject()
    {
        FactoryObject object = mock(FactoryObject.class);
        FactoryDescriptor descriptor = mock(FactoryDescriptor.class);
        when(object.getFactory()).thenReturn(descriptor);
        return object;
    }
private FactoryObject mockFactoryObject ( ) { FactoryObject object = mock ( FactoryObject . class ) ; FactoryDescriptor descriptor = mock ( FactoryDescriptor . class ) ; when ( object . getFactory ( ) ) . thenReturn ( descriptor ) ; return object ; }
Method to create a mocked instance of a FactoryObject.
Method to create a mocked instance of a FactoryObject .