@Test @DisplayName("not accept non-CommandHandler types") void rejectNonHandlerTypes() { String invalidClassname = ModelVerifierTest.class.getName(); CommandHandlers spineModel = CommandHandlers .newBuilder() .addCommandHandlingType(invalidClassname) .build(); assertThrows(IllegalArgumentException.class, () -> new ModelVerifier(project).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);   }