コード例 #1
0
  @Test
  public void testCustomProvidersFeature() {
    JerseyConfiguration instance = new JerseyConfiguration();
    instance.register(new CustomProvidersFeature(Arrays.asList(new Class<?>[] {MyProvider.class})));

    assertTrue(instance.getProviderClasses().contains(MyProvider.class));
  }
コード例 #2
0
 @Test
 @Ignore("not ready yet")
 // TODO implement test
 public void testGetProviderClasses() {
   JerseyConfiguration instance = new JerseyConfiguration();
   Set expResult = null;
   Set result = instance.getProviderClasses();
   assertEquals(expResult, result);
   fail("The test case is a prototype.");
 }