Package com.eclipsesource.jaxrs.provider.gson.internal

Examples of com.eclipsesource.jaxrs.provider.gson.internal.Activator.start()


  @Test
  public void testStartRegistersProvider() throws Exception {
    Activator activator = new Activator();
    BundleContext context = mock( BundleContext.class );
   
    activator.start( context );
   
    verify( context ).registerService( eq( GsonProvider.class.getName() ), any( GsonProvider.class ), any( Dictionary.class ) );
  }
 
  @Test
View Full Code Here


    BundleContext context = mock( BundleContext.class );
    ServiceRegistration registration = mock( ServiceRegistration.class );
    when( context.registerService( any( String.class ), anyObject(), any( Dictionary.class ) ) )
      .thenReturn( registration );
   
    activator.start( context );
    activator.stop( context );
   
    verify( registration ).unregister();
  }
}
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.