Package org.springframework.osgi.mock

Examples of org.springframework.osgi.mock.MockServiceReference



  protected void setUp() throws Exception {

    // generate services references in reverse order to have them increasing service ids
    ref3 = new MockServiceReference();
    ref2 = new MockServiceReference();
    ref1 = new MockServiceReference();

    service1 = "service 1";
    service2 = "service 2";
    service3 = "service 3";
View Full Code Here


  protected void setUp() throws Exception {
    Properties props = new Properties();
    props.setProperty("composer", "Rachmaninoff");
    reference = new SwappingServiceReferenceProxy();
    serviceReference = new MockServiceReference();
  }
View Full Code Here

    assertEquals(0, reference.compareTo(new SwappingServiceReferenceProxy()));
  }

  public void testCompareToDifferentService() throws Exception {
    SwappingServiceReferenceProxy proxy = new SwappingServiceReferenceProxy();
    proxy.swapDelegates(new MockServiceReference());
    try {
      reference.compareTo(proxy);
      fail("expected CCE");
    }
    catch (Exception ex) {
View Full Code Here

  protected void setUp() throws Exception {
    service = new Object();
    serv2 = new Object();
    serv3 = new Object();

    reference = new MockServiceReference();
    ref2 = new MockServiceReference();
    ref3 = new MockServiceReference();

    serv2Filter = "serv2";
    nullFilter = "null";

    // special mock context
View Full Code Here

TOP

Related Classes of org.springframework.osgi.mock.MockServiceReference

Copyright © 2018 www.massapicom. 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.