@Test public void testPublishResource$preexisting$idClash() throws ApplicationConfigurationException { this.endpointRepository.add(this.endpoint); this.resourceRepository.add(this.resource); this.sut.publishResource(NAME1,PersonHandler.class,"anotherPath/"); try { this.sut.configureRootResources(); fail("Should not allow publishing root resources with preexisting id clash"); } catch (ApplicationConfigurationException e) { logFailure(e); } }
@Override public void publishResource(Name<?> resourceName, Class<? extends ResourceHandler> handlerClass, String path) { RootResource rootResource = new RootResource(resourceName,handlerClass,path); this.candidates.add(rootResource); }
EnvironmentImpl implements Environment { @Override public void publishResource(Name<?> resourceName, Class<? extends ResourceHandler> handlerClass, String path) { RootResource rootResource = new RootResource(resourceName,handlerClass,path); this.candidates.add(rootResource); } }
EnvironmentImpl implements Environment { @Override public void publishResource(Name<?> resourceName, Class<? extends ResourceHandler> handlerClass, String path) { RootResource rootResource = new RootResource(resourceName,handlerClass,path); this.candidates.add(rootResource); } EnvironmentImpl(TemplateManagementService templateManagementService, ModelFactory persistencyManager, EndpointRepository endpointRepository, ResourceRepository resourceRepository, LifecycleEnvironment lifecycleEnvironment); }
EnvironmentImpl implements Environment { @Override public void publishResource(Name<?> resourceName, Class<? extends ResourceHandler> handlerClass, String path) { RootResource rootResource = new RootResource(resourceName,handlerClass,path); this.candidates.add(rootResource); } EnvironmentImpl(TemplateManagementService templateManagementService, ModelFactory persistencyManager, EndpointRepository endpointRepository, ResourceRepository resourceRepository, LifecycleEnvironment lifecycleEnvironment); @Override void publishResource(Name<?> resourceName, Class<? extends ResourceHandler> handlerClass, String path); @Override LifecycleEnvironment lifecycle(); }
EnvironmentImpl implements Environment { @Override public void publishResource(Name<?> resourceName, Class<? extends ResourceHandler> handlerClass, String path) { RootResource rootResource = new RootResource(resourceName,handlerClass,path); this.candidates.add(rootResource); } EnvironmentImpl(TemplateManagementService templateManagementService, ModelFactory persistencyManager, EndpointRepository endpointRepository, ResourceRepository resourceRepository, LifecycleEnvironment lifecycleEnvironment); @Override void publishResource(Name<?> resourceName, Class<? extends ResourceHandler> handlerClass, String path); @Override LifecycleEnvironment lifecycle();  }