@Test public void isMuleDomainPackagingTypeValidTest() throws ValidationException { assertThat("Packaging type should be valid", isPackagingTypeValid(MULE_DOMAIN), is(true)); }
public static Boolean isPackagingTypeValid(String packagingType) throws ValidationException { try { PackagingType.fromString(packagingType); } catch (IllegalArgumentException e) { List<String> packagingTypeNames = Arrays.stream(PackagingType.values()).map(PackagingType::toString) .collect(Collectors.toList()); throw new ValidationException(packagingType == null ? e.getMessage() : "Unknown packaging type " + packagingType + ". Please specify a valid mule packaging type: " + String.join(", ", packagingTypeNames)); } return true; }
AbstractProjectValidator { public static Boolean isPackagingTypeValid(String packagingType) throws ValidationException { try { PackagingType.fromString(packagingType); } catch (IllegalArgumentException e) { List<String> packagingTypeNames = Arrays.stream(PackagingType.values()).map(PackagingType::toString) .collect(Collectors.toList()); throw new ValidationException(packagingType == null ? e.getMessage() : "Unknown packaging type " + packagingType + ". Please specify a valid mule packaging type: " + String.join(", ", packagingTypeNames)); } return true; } }
AbstractProjectValidator { public static Boolean isPackagingTypeValid(String packagingType) throws ValidationException { try { PackagingType.fromString(packagingType); } catch (IllegalArgumentException e) { List<String> packagingTypeNames = Arrays.stream(PackagingType.values()).map(PackagingType::toString) .collect(Collectors.toList()); throw new ValidationException(packagingType == null ? e.getMessage() : "Unknown packaging type " + packagingType + ". Please specify a valid mule packaging type: " + String.join(", ", packagingTypeNames)); } return true; } AbstractProjectValidator(ProjectInformation projectInformation, boolean strictCheck);  AbstractProjectValidator(ProjectInformation projectInformation, ProjectRequirement requirement); }
AbstractProjectValidator { public static Boolean isPackagingTypeValid(String packagingType) throws ValidationException { try { PackagingType.fromString(packagingType); } catch (IllegalArgumentException e) { List<String> packagingTypeNames = Arrays.stream(PackagingType.values()).map(PackagingType::toString) .collect(Collectors.toList()); throw new ValidationException(packagingType == null ? e.getMessage() : "Unknown packaging type " + packagingType + ". Please specify a valid mule packaging type: " + String.join(", ", packagingTypeNames)); } return true; } AbstractProjectValidator(ProjectInformation projectInformation, boolean strictCheck);  AbstractProjectValidator(ProjectInformation projectInformation, ProjectRequirement requirement); Boolean isProjectValid(String goal); static Boolean isPackagingTypeValid(String packagingType); static Boolean isClassifierValid(String classifier); }
AbstractProjectValidator { public static Boolean isPackagingTypeValid(String packagingType) throws ValidationException { try { PackagingType.fromString(packagingType); } catch (IllegalArgumentException e) { List<String> packagingTypeNames = Arrays.stream(PackagingType.values()).map(PackagingType::toString) .collect(Collectors.toList()); throw new ValidationException(packagingType == null ? e.getMessage() : "Unknown packaging type " + packagingType + ". Please specify a valid mule packaging type: " + String.join(", ", packagingTypeNames)); } return true; } AbstractProjectValidator(ProjectInformation projectInformation, boolean strictCheck);  AbstractProjectValidator(ProjectInformation projectInformation, ProjectRequirement requirement); Boolean isProjectValid(String goal); static Boolean isPackagingTypeValid(String packagingType); static Boolean isClassifierValid(String classifier); static final String DEPLOY_GOAL; static final String VALIDATE_GOAL; }