mil.dod.th.ose.test/src/mil/dod/th/ose/test/FactoryObjectContextMocker.java
private static void mockContext(final FactoryObjectContext context, 
        final FactoryDescriptor factory, final String name, final Map<String, Object> props)
    {
        when(context.getName()).thenReturn(name);
        when(context.getFactory()).thenReturn(factory);
        when(context.getProperties()).thenReturn(props);
    }
/**
     * Method used to mock the context methods.
     * 
     * @param context
     *      Context to be mocked.
     * @param factory
     *      Factory the context should return when getFactory is called.
     * @param name
     *      Name to be returned when getName is called.
     * @param props
     *      Properties to be returned when getProperties is called.
     */
Method used to mock the context methods.

@param context
Context to be mocked.
@param factory
Factory the context should return when getFactory is called.
@param name
Name to be returned when getName is called.
@param props
Properties to be returned when getProperties is called.
Method used to mock the context methods . @param context Context to be mocked . @param factory Factory the context should return when getFactory is called . @param name Name to be returned when getName is called . @param props Properties to be returned when getProperties is called .
private static void mockContext(final FactoryObjectContext context, 
        final FactoryDescriptor factory, final String name, final Map<String, Object> props)
    {
        when(context.getName()).thenReturn(name);
        when(context.getFactory()).thenReturn(factory);
        when(context.getProperties()).thenReturn(props);
    }
private static void mockContext ( final FactoryObjectContext context , final FactoryDescriptor factory , final String name , final Map < String , Object > props ) { when ( context . getName ( ) ) . thenReturn ( name ) ; when ( context . getFactory ( ) ) . thenReturn ( factory ) ; when ( context . getProperties ( ) ) . thenReturn ( props ) ; }
Method used to mock the context methods.
Method used to mock the context methods .