@Test public void testRegisterComplexControllerWithInheritance() throws Exception { controllerRegistry.register(WithPathWithMultiValueAndInheritanceController.class); assertThat(getUriPatterns(controllerRegistry), containsInAnyOrder(WithPathWithMultiValueAndInheritanceController.expectedUriPatterns())); }
public void register(Package... packages) { String[] packageNames = Arrays.stream(packages) .map(Package::getName) .toArray(String[]::new); register(packageNames); }
ControllerRegistry { public void register(Package... packages) { String[] packageNames = Arrays.stream(packages) .map(Package::getName) .toArray(String[]::new); register(packageNames); } }
ControllerRegistry { public void register(Package... packages) { String[] packageNames = Arrays.stream(packages) .map(Package::getName) .toArray(String[]::new); register(packageNames); } ControllerRegistry(ControllerApplication application); }
ControllerRegistry { public void register(Package... packages) { String[] packageNames = Arrays.stream(packages) .map(Package::getName) .toArray(String[]::new); register(packageNames); } ControllerRegistry(ControllerApplication application); void register(Package... packages); void register(String... packageNames); void register(Class<? extends Controller>... controllerClasses); void register(Controller... controllers); List<Route> getRoutes(); void register(Controller controller); }
ControllerRegistry { public void register(Package... packages) { String[] packageNames = Arrays.stream(packages) .map(Package::getName) .toArray(String[]::new); register(packageNames); } ControllerRegistry(ControllerApplication application); void register(Package... packages); void register(String... packageNames); void register(Class<? extends Controller>... controllerClasses); void register(Controller... controllers); List<Route> getRoutes(); void register(Controller controller);  }