mil.dod.th.ose.test/src/mil/dod/th/ose/test/FactoryObjectContextMocker.java
public static AssetContext mockAssetContext(final String name, final Map<String, Object> props)
    {
        final AssetContext context = mock(AssetContext.class);
        final AssetFactory factory = mock(AssetFactory.class);
        
        mockContext(context, factory, name, props);
        
        return context;
    }
/**
     * Creates a mocked {@link AssetContext} that returns the specified properties.
     * 
     * @param name
     *      Name of the asset to be returned when {@link AssetContext#getName()}.
     * @param props
     *      Configuration properties to be returned when {@link AssetContext#getProperties()} or 
     *      {@link AssetContext#getProperties()} is called.
     * @return
     *      The mocked asset context.
     */
Creates a mocked  AssetContext that returns the specified properties.

@param name
Name of the asset to be returned when  AssetContext#getName().
@param props
Configuration properties to be returned when  AssetContext#getProperties() or
AssetContext#getProperties() is called.
@return
The mocked asset context.
Creates a mocked AssetContext that returns the specified properties . @param name Name of the asset to be returned when AssetContext#getName () . @param props Configuration properties to be returned when AssetContext#getProperties () or AssetContext#getProperties () is called . @return The mocked asset context .
public static AssetContext mockAssetContext(final String name, final Map<String, Object> props)
    {
        final AssetContext context = mock(AssetContext.class);
        final AssetFactory factory = mock(AssetFactory.class);
        mockContext(context, factory, name, props);
        return context;
    }
public static AssetContext mockAssetContext ( final String name , final Map < String , Object > props ) { final AssetContext context = mock ( AssetContext . class ) ; final AssetFactory factory = mock ( AssetFactory . class ) ; mockContext ( context , factory , name , props ) ; return context ; }
Creates a mocked {@link AssetContext} that returns the specified properties.
Creates a mocked { @link AssetContext } that returns the specified properties .