@Test @DisplayName("verify model from classpath") void verifyModel() { ModelVerifier verifier = new ModelVerifier(project); String commandHandlerTypeName = UploadCommandHandler.class.getName(); String aggregateTypeName = EditAggregate.class.getName(); String procManTypeName = RenameProcMan.class.getName(); CommandHandlers spineModel = CommandHandlers .newBuilder() .addCommandHandlingType(commandHandlerTypeName) .addCommandHandlingType(aggregateTypeName) .addCommandHandlingType(procManTypeName) .build(); verifier.verify(spineModel); }
void verify(CommandHandlers handlers) { ClassSet classSet = new ClassSet(projectClassLoader, handlers.getCommandHandlingTypeList()); reportNotFoundIfAny(classSet); DuplicateHandlerCheck.newInstance() .check(classSet.elements()); }
ModelVerifier implements Logging { void verify(CommandHandlers handlers) { ClassSet classSet = new ClassSet(projectClassLoader, handlers.getCommandHandlingTypeList()); reportNotFoundIfAny(classSet); DuplicateHandlerCheck.newInstance() .check(classSet.elements()); } }
ModelVerifier implements Logging { void verify(CommandHandlers handlers) { ClassSet classSet = new ClassSet(projectClassLoader, handlers.getCommandHandlingTypeList()); reportNotFoundIfAny(classSet); DuplicateHandlerCheck.newInstance() .check(classSet.elements()); } ModelVerifier(Project project); }
ModelVerifier implements Logging { void verify(CommandHandlers handlers) { ClassSet classSet = new ClassSet(projectClassLoader, handlers.getCommandHandlingTypeList()); reportNotFoundIfAny(classSet); DuplicateHandlerCheck.newInstance() .check(classSet.elements()); } ModelVerifier(Project project);  }
ModelVerifier implements Logging { void verify(CommandHandlers handlers) { ClassSet classSet = new ClassSet(projectClassLoader, handlers.getCommandHandlingTypeList()); reportNotFoundIfAny(classSet); DuplicateHandlerCheck.newInstance() .check(classSet.elements()); } ModelVerifier(Project project);   }