Package org.springframework.osgi.mock

Examples of org.springframework.osgi.mock.MockFilter


*
*/
public class ServiceUnavailableExceptionTest extends TestCase {

  public void testServiceUnavailableExceptionFilter() {
    Filter filter = new MockFilter();
    ServiceUnavailableException exception = new ServiceUnavailableException(filter);
    assertFalse(filter.toString().equals(exception.getMessage()));
  }
View Full Code Here


    Object target = new Object();
    Method m = target.getClass().getDeclaredMethod("hashCode", null);

    MethodInvocation invocation = new MockMethodInvocation(m);
    createInterceptor(new MockFilter(nullFilter));
    ServiceEvent event = new ServiceEvent(ServiceEvent.UNREGISTERING, reference);
    listener.serviceChanged(event);
    interceptor.getRetryTemplate().reset(3000);
    long now = System.currentTimeMillis();
    try {
View Full Code Here

    listener.serviceChanged(event);

    Object target = interceptor.getTarget();
    assertSame("target not properly discovered", service, target);

    createInterceptor(new MockFilter(serv2Filter));
    event = new ServiceEvent(ServiceEvent.UNREGISTERING, reference);
    listener.serviceChanged(event);

    try {
      target = interceptor.getTarget();
View Full Code Here

TOP

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

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.