@Test(expected = ValidationException.class) public void isProjectStructureValidMuleDomainInvalid() throws ValidationException { Path mainSrcFolder = projectBaseFolder.getRoot().toPath().resolve(SRC.value()).resolve(MAIN.value()); mainSrcFolder.toFile().mkdirs(); isProjectStructureValid(MULE_DOMAIN.toString(), projectBaseFolder.getRoot().toPath()); }
public static void isProjectStructureValid(String packagingType, Path projectBaseDir) throws ValidationException { File mainSrcApplication = mainSrcApplication(packagingType, projectBaseDir); if (!mainSrcApplication.exists()) { throw new ValidationException("The folder " + mainSrcApplication.getAbsolutePath() + " is mandatory"); } }
MuleProjectValidator extends AbstractProjectValidator { public static void isProjectStructureValid(String packagingType, Path projectBaseDir) throws ValidationException { File mainSrcApplication = mainSrcApplication(packagingType, projectBaseDir); if (!mainSrcApplication.exists()) { throw new ValidationException("The folder " + mainSrcApplication.getAbsolutePath() + " is mandatory"); } } }
MuleProjectValidator extends AbstractProjectValidator { public static void isProjectStructureValid(String packagingType, Path projectBaseDir) throws ValidationException { File mainSrcApplication = mainSrcApplication(packagingType, projectBaseDir); if (!mainSrcApplication.exists()) { throw new ValidationException("The folder " + mainSrcApplication.getAbsolutePath() + " is mandatory"); } } MuleProjectValidator(ProjectInformation projectInformation, List<SharedLibraryDependency> sharedLibraries,
                              boolean strictCheck);  MuleProjectValidator(ProjectInformation projectInformation, List<SharedLibraryDependency> sharedLibraries,
                              ProjectRequirement requirement); }
MuleProjectValidator extends AbstractProjectValidator { public static void isProjectStructureValid(String packagingType, Path projectBaseDir) throws ValidationException { File mainSrcApplication = mainSrcApplication(packagingType, projectBaseDir); if (!mainSrcApplication.exists()) { throw new ValidationException("The folder " + mainSrcApplication.getAbsolutePath() + " is mandatory"); } } 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 { public static void isProjectStructureValid(String packagingType, Path projectBaseDir) throws ValidationException { File mainSrcApplication = mainSrcApplication(packagingType, projectBaseDir); if (!mainSrcApplication.exists()) { throw new ValidationException("The folder " + mainSrcApplication.getAbsolutePath() + " is mandatory"); } } 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);  }