@Ignore @Test public void isProjectValid() throws ValidationException, IOException { projectBaseFolder.newFile(MULE_ARTIFACT_JSON); projectBaseFolder.getRoot().toPath().resolve(SRC.value()).resolve(MAIN.value()).resolve(MULE.value()).toFile().mkdirs(); MuleProjectValidator validatorSpy = spy(validator); doNothing().when(validatorSpy).validateDescriptorFile(any(), any()); doCallRealMethod().when(validatorSpy).isProjectValid(VALIDATE_GOAL); validatorSpy.isProjectValid(VALIDATE_GOAL); verify(validatorSpy, times(1)).validateDescriptorFile(projectBaseFolder.getRoot().toPath(), Optional.empty()); }
protected void validateDescriptorFile(Path projectBaseDir, Optional<String> deployMuleVersion) throws ValidationException { MuleArtifactJsonValidator.validate(projectBaseDir, deployMuleVersion); }
MuleProjectValidator extends AbstractProjectValidator { protected void validateDescriptorFile(Path projectBaseDir, Optional<String> deployMuleVersion) throws ValidationException { MuleArtifactJsonValidator.validate(projectBaseDir, deployMuleVersion); } }
MuleProjectValidator extends AbstractProjectValidator { protected void validateDescriptorFile(Path projectBaseDir, Optional<String> deployMuleVersion) throws ValidationException { MuleArtifactJsonValidator.validate(projectBaseDir, deployMuleVersion); } MuleProjectValidator(ProjectInformation projectInformation, List<SharedLibraryDependency> sharedLibraries,
                              boolean strictCheck);  MuleProjectValidator(ProjectInformation projectInformation, List<SharedLibraryDependency> sharedLibraries,
                              ProjectRequirement requirement); }
MuleProjectValidator extends AbstractProjectValidator { protected void validateDescriptorFile(Path projectBaseDir, Optional<String> deployMuleVersion) throws ValidationException { MuleArtifactJsonValidator.validate(projectBaseDir, deployMuleVersion); } MuleProjectValidator(ProjectInformation projectInformation, List<SharedLibraryDependency> sharedLibraries,
                              boolean strictCheck);  MuleProjectValidator(ProjectInformation projectInformation, List<SharedLibraryDependency> sharedLibraries,
                              ProjectRequirement requirement); static void isProjectStructureValid(String packagingType, Path projectBaseDir); void validateSharedLibraries(List<SharedLibraryDependency> sharedLibraries,
                                      List<ArtifactCoordinates> projectDependencies); }
MuleProjectValidator extends AbstractProjectValidator { protected void validateDescriptorFile(Path projectBaseDir, Optional<String> deployMuleVersion) throws ValidationException { MuleArtifactJsonValidator.validate(projectBaseDir, deployMuleVersion); } MuleProjectValidator(ProjectInformation projectInformation, List<SharedLibraryDependency> sharedLibraries,
                              boolean strictCheck);  MuleProjectValidator(ProjectInformation projectInformation, List<SharedLibraryDependency> sharedLibraries,
                              ProjectRequirement requirement); static void isProjectStructureValid(String packagingType, Path projectBaseDir); void validateSharedLibraries(List<SharedLibraryDependency> sharedLibraries,
                                      List<ArtifactCoordinates> projectDependencies);  }