@Test public void validateReferencedDomainsIfPresentNull() throws ValidationException { expectedException.expect(IllegalArgumentException.class); expectedException.expectMessage("List of dependencies should not be null"); validator.validateReferencedDomainsIfPresent(null); }
protected void validateReferencedDomainsIfPresent(List<ArtifactCoordinates> dependencies) throws ValidationException { checkArgument(dependencies != null, "List of dependencies should not be null"); Set<ArtifactCoordinates> domains = dependencies.stream() .filter(d -> StringUtils.equals(MULE_DOMAIN.toString(), d.getClassifier())) .collect(Collectors.toSet()); validateDomain(domains); }
MuleProjectValidator extends AbstractProjectValidator { protected void validateReferencedDomainsIfPresent(List<ArtifactCoordinates> dependencies) throws ValidationException { checkArgument(dependencies != null, "List of dependencies should not be null"); Set<ArtifactCoordinates> domains = dependencies.stream() .filter(d -> StringUtils.equals(MULE_DOMAIN.toString(), d.getClassifier())) .collect(Collectors.toSet()); validateDomain(domains); } }
MuleProjectValidator extends AbstractProjectValidator { protected void validateReferencedDomainsIfPresent(List<ArtifactCoordinates> dependencies) throws ValidationException { checkArgument(dependencies != null, "List of dependencies should not be null"); Set<ArtifactCoordinates> domains = dependencies.stream() .filter(d -> StringUtils.equals(MULE_DOMAIN.toString(), d.getClassifier())) .collect(Collectors.toSet()); validateDomain(domains); } MuleProjectValidator(ProjectInformation projectInformation, List<SharedLibraryDependency> sharedLibraries,
                              boolean strictCheck);  MuleProjectValidator(ProjectInformation projectInformation, List<SharedLibraryDependency> sharedLibraries,
                              ProjectRequirement requirement); }
MuleProjectValidator extends AbstractProjectValidator { protected void validateReferencedDomainsIfPresent(List<ArtifactCoordinates> dependencies) throws ValidationException { checkArgument(dependencies != null, "List of dependencies should not be null"); Set<ArtifactCoordinates> domains = dependencies.stream() .filter(d -> StringUtils.equals(MULE_DOMAIN.toString(), d.getClassifier())) .collect(Collectors.toSet()); validateDomain(domains); } 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 validateReferencedDomainsIfPresent(List<ArtifactCoordinates> dependencies) throws ValidationException { checkArgument(dependencies != null, "List of dependencies should not be null"); Set<ArtifactCoordinates> domains = dependencies.stream() .filter(d -> StringUtils.equals(MULE_DOMAIN.toString(), d.getClassifier())) .collect(Collectors.toSet()); validateDomain(domains); } 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);  }