Examples of BundleContextMock


Examples of org.apache.aries.mocks.BundleContextMock

  static ParserProxy _parserProxy;
  static ModellingManager _modellingManager;
 
  @BeforeClass
  public static void setup() {
    BundleContext mockCtx = Skeleton.newMock(new BundleContextMock(), BundleContext.class);
    NamespaceHandlerRegistry nhri = new NamespaceHandlerRegistryImpl (mockCtx);
    ParserService parserService = new ParserServiceImpl(nhri);
    mockCtx.registerService(ParserService.class.getName(), parserService, new Hashtable<String, String>());
    _parserProxy = new ParserProxyImpl();
    ((ParserProxyImpl)_parserProxy).setParserService(parserService);
View Full Code Here

Examples of org.apache.aries.mocks.BundleContextMock

  private SingleServiceTracker<String> sut;
  private SingleServiceTracker.SingleServiceListener listener;
 
  @Before
  public void setup() {
    ctx = Skeleton.newMock(new BundleContextMock(), BundleContext.class);
  }
View Full Code Here

Examples of org.apache.stanbol.commons.testing.http.BundleContextMock

    @Before
    public void initMocks() {
        this.servletContext = new ServletContextMock();
        this.servletContext.putAttribute(BaseStanbolResource.ROOT_URL, "http://localhost:8080");
        BundleContextMock bc = (BundleContextMock) this.servletContext.getAttribute(BundleContext.class
                .getName());
        bc.putService(FactStore.class.getName(), new FactStoreMock());
        this.uriInfoMock = new UriInfoMock();
    }
View Full Code Here

Examples of org.apache.stanbol.commons.testing.http.BundleContextMock

    private ServletContextMock servletContext;

    @Before
    public void initMocks() {
        this.servletContext = new ServletContextMock();
        BundleContextMock bc = (BundleContextMock) this.servletContext.getAttribute(BundleContext.class
                .getName());
        bc.putService(FactStore.class.getName(), new FactStoreMock());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.