@Test public void testApp() { final HelloApplication app = new HelloApplication(); final Set<Class<?>> c = app.getClasses(); assertTrue(c.contains(HelloResource.class)); assertTrue(c.contains(PostResource.class)); assertTrue(c.contains(ShoutResource.class)); }
@Override public Set<Class<?>> getClasses() { return new HashSet<>(Arrays.asList( HelloResource.class, PostResource.class, ShoutResource.class)); }
HelloApplication extends Application { @Override public Set<Class<?>> getClasses() { return new HashSet<>(Arrays.asList( HelloResource.class, PostResource.class, ShoutResource.class)); } }
HelloApplication extends Application { @Override public Set<Class<?>> getClasses() { return new HashSet<>(Arrays.asList( HelloResource.class, PostResource.class, ShoutResource.class)); }  }
HelloApplication extends Application { @Override public Set<Class<?>> getClasses() { return new HashSet<>(Arrays.asList( HelloResource.class, PostResource.class, ShoutResource.class)); }  @Override Set<Class<?>> getClasses(); }
HelloApplication extends Application { @Override public Set<Class<?>> getClasses() { return new HashSet<>(Arrays.asList( HelloResource.class, PostResource.class, ShoutResource.class)); }  @Override Set<Class<?>> getClasses();  }