mil.dod.th.ose.core/test/mil/dod/th/ose/core/MetaTypeProviderBundleMocker.java
public static MetaTypeProviderBundle mockIt()
    {
        MetaTypeProviderBundle metaTypeProviderBundle = mock(MetaTypeProviderBundle.class);
        Bundle bundle = mock(Bundle.class);
        BundleContext bundleContext = mock(BundleContext.class);
        
        when(metaTypeProviderBundle.getBundle()).thenReturn(bundle);
        when(bundle.getBundleContext()).thenReturn(bundleContext);
        
        return metaTypeProviderBundle;
    }
/**
     * Base mocking of the {@link MetaTypeProviderBundle} service.
     */
Base mocking of the  MetaTypeProviderBundle service.
Base mocking of the MetaTypeProviderBundle service .
public static MetaTypeProviderBundle mockIt()
    {
        MetaTypeProviderBundle metaTypeProviderBundle = mock(MetaTypeProviderBundle.class);
        Bundle bundle = mock(Bundle.class);
        BundleContext bundleContext = mock(BundleContext.class);
        when(metaTypeProviderBundle.getBundle()).thenReturn(bundle);
        when(bundle.getBundleContext()).thenReturn(bundleContext);
        return metaTypeProviderBundle;
    }
public static MetaTypeProviderBundle mockIt ( ) { MetaTypeProviderBundle metaTypeProviderBundle = mock ( MetaTypeProviderBundle . class ) ; Bundle bundle = mock ( Bundle . class ) ; BundleContext bundleContext = mock ( BundleContext . class ) ; when ( metaTypeProviderBundle . getBundle ( ) ) . thenReturn ( bundle ) ; when ( bundle . getBundleContext ( ) ) . thenReturn ( bundleContext ) ; return metaTypeProviderBundle ; }
Base mocking of the {@link MetaTypeProviderBundle} service.
Base mocking of the { @link MetaTypeProviderBundle } service .