mil.dod.th.ose.test/src/mil/dod/th/ose/test/PropertyRetrieverMocker.java
public static PropertyRetriever mockIt(URL url, Properties properties) throws IOException
    {
        PropertyRetriever retriever = mock(PropertyRetriever.class);
        
        when(retriever.getPropertiesFromUrl(url)).thenReturn(properties);
        
        return retriever;
    }
/**
     * Mock the retriever to return the given properties based on the URL.
     */
Mock the retriever to return the given properties based on the URL.
Mock the retriever to return the given properties based on the URL .
public static PropertyRetriever mockIt(URL url, Properties properties) throws IOException
    {
        PropertyRetriever retriever = mock(PropertyRetriever.class);
        when(retriever.getPropertiesFromUrl(url)).thenReturn(properties);
        return retriever;
    }
public static PropertyRetriever mockIt ( URL url , Properties properties ) throws IOException { PropertyRetriever retriever = mock ( PropertyRetriever . class ) ; when ( retriever . getPropertiesFromUrl ( url ) ) . thenReturn ( properties ) ; return retriever ; }
Mock the retriever to return the given properties based on the URL.
Mock the retriever to return the given properties based on the URL .