Examples of DetailedModuleDefinitionResourceAssembler


Examples of org.springframework.xd.dirt.rest.DetailedModuleDefinitionResourceAssembler

  public void testDeleteCompositeSource() {
    deployStream("aCompositeStream", "compositesource | sink");
    ModuleDefinitionService moduleDefinitionService = getAdminContext().getBean(
        ModuleDefinitionService.class);
    // Not actually used in test so ok for now
    DetailedModuleDefinitionResourceAssembler assembler = mock(DetailedModuleDefinitionResourceAssembler.class);
    ModulesController modulesController = new ModulesController(moduleDefinitionService, assembler);
    try {
      modulesController.delete(ModuleType.source, "compositeModuleThatDoesNotExist");
      fail("Exception should be thrown when trying to delete a composite module that does not exist.");
    }
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.