@Test public void validateApplicationsEmptyListTest() throws ValidationException { expectedException.expect(ValidationException.class); expectedException.expectMessage("A domain bundle should contain at least one application"); ArtifactCoordinates applicationDomain = new ArtifactCoordinates(GROUP_ID, ARTIFACT_ID + MULE_DOMAIN, MULE_DOMAIN); validator.validateApplications(applicationDomain, Collections.emptyList()); }
protected void validateApplications(ArtifactCoordinates domain, List<ArtifactCoordinates> applications) throws ValidationException { if (applications == null || applications.isEmpty()) { throw new ValidationException("A domain bundle should contain at least one application"); } for (ArtifactCoordinates applicationCoordinates : applications) { validateApplication(domain, applicationCoordinates); } }
DomainBundleProjectValidator extends AbstractProjectValidator { protected void validateApplications(ArtifactCoordinates domain, List<ArtifactCoordinates> applications) throws ValidationException { if (applications == null || applications.isEmpty()) { throw new ValidationException("A domain bundle should contain at least one application"); } for (ArtifactCoordinates applicationCoordinates : applications) { validateApplication(domain, applicationCoordinates); } } }
DomainBundleProjectValidator extends AbstractProjectValidator { protected void validateApplications(ArtifactCoordinates domain, List<ArtifactCoordinates> applications) throws ValidationException { if (applications == null || applications.isEmpty()) { throw new ValidationException("A domain bundle should contain at least one application"); } for (ArtifactCoordinates applicationCoordinates : applications) { validateApplication(domain, applicationCoordinates); } } DomainBundleProjectValidator(ProjectInformation defaultProjectInformation,
                                      AetherMavenClient aetherMavenClient); }
DomainBundleProjectValidator extends AbstractProjectValidator { protected void validateApplications(ArtifactCoordinates domain, List<ArtifactCoordinates> applications) throws ValidationException { if (applications == null || applications.isEmpty()) { throw new ValidationException("A domain bundle should contain at least one application"); } for (ArtifactCoordinates applicationCoordinates : applications) { validateApplication(domain, applicationCoordinates); } } DomainBundleProjectValidator(ProjectInformation defaultProjectInformation,
                                      AetherMavenClient aetherMavenClient);  }
DomainBundleProjectValidator extends AbstractProjectValidator { protected void validateApplications(ArtifactCoordinates domain, List<ArtifactCoordinates> applications) throws ValidationException { if (applications == null || applications.isEmpty()) { throw new ValidationException("A domain bundle should contain at least one application"); } for (ArtifactCoordinates applicationCoordinates : applications) { validateApplication(domain, applicationCoordinates); } } DomainBundleProjectValidator(ProjectInformation defaultProjectInformation,
                                      AetherMavenClient aetherMavenClient);   }