@Test @DisplayName("fail on command receiving methods marked as external") void failOnExternalCommandReceivers() { ModelVerifier verifier = new ModelVerifier(project); String invalidProcman = InvalidCommander.class.getName(); CommandHandlers spineModel = CommandHandlers .newBuilder() .addCommandHandlingType(invalidProcman) .build(); assertThrows(ExternalCommandReceiverMethodError.class, () -> 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);   }