@Test public void isNotValidMulePluginMissingClassifierTest() { Artifact notAMulePluginDependency = new Artifact(artifactCoordinates, bundleURI); assertThat("Mule plugin validation method should have returned false", ArtifactUtils.isValidMulePlugin(notAMulePluginDependency), is(false)); }
public static boolean isValidMulePlugin(Artifact artifact) { ArtifactCoordinates pluginCoordinates = artifact.getArtifactCoordinates(); Optional<String> pluginClassifier = Optional.ofNullable(pluginCoordinates.getClassifier()); return pluginClassifier.isPresent() && MULE_PLUGIN_CLASSIFIER.equals(pluginClassifier.get()); }
ArtifactUtils { public static boolean isValidMulePlugin(Artifact artifact) { ArtifactCoordinates pluginCoordinates = artifact.getArtifactCoordinates(); Optional<String> pluginClassifier = Optional.ofNullable(pluginCoordinates.getClassifier()); return pluginClassifier.isPresent() && MULE_PLUGIN_CLASSIFIER.equals(pluginClassifier.get()); } }
ArtifactUtils { public static boolean isValidMulePlugin(Artifact artifact) { ArtifactCoordinates pluginCoordinates = artifact.getArtifactCoordinates(); Optional<String> pluginClassifier = Optional.ofNullable(pluginCoordinates.getClassifier()); return pluginClassifier.isPresent() && MULE_PLUGIN_CLASSIFIER.equals(pluginClassifier.get()); }  }
ArtifactUtils { public static boolean isValidMulePlugin(Artifact artifact) { ArtifactCoordinates pluginCoordinates = artifact.getArtifactCoordinates(); Optional<String> pluginClassifier = Optional.ofNullable(pluginCoordinates.getClassifier()); return pluginClassifier.isPresent() && MULE_PLUGIN_CLASSIFIER.equals(pluginClassifier.get()); }  static ArtifactCoordinates toArtifactCoordinates(BundleDescriptor bundleDescriptor); static Artifact toArtifact(BundleDependency bundleDependency); static List<Artifact> toArtifacts(Collection<BundleDependency> dependencies); static boolean isValidMulePlugin(Artifact artifact); static BundleDescriptor toBundleDescriptor(ArtifactCoordinates artifactCoordinates); static BundleDescriptor toBundleDescriptor(Dependency dependency); static List<Artifact> toApplicationModelArtifacts(List<BundleDependency> appDependencies); static List<Artifact> updatePackagesResources(List<Artifact> artifacts); static Artifact updatePackagesResources(Artifact artifact); static List<Artifact> updateArtifactsSharedState(List<BundleDependency> appDependencies, List<Artifact> artifacts,
                                                          Model pomModel); static void updateScopeIfDomain(Artifact artifact); static ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel); static BundleDescriptor getPomProjectBundleDescriptor(ApplicationGAVModel appGAVModel); static BundleDescriptor getBundleDescriptor(ApplicationGAVModel appGAVModel); }
ArtifactUtils { public static boolean isValidMulePlugin(Artifact artifact) { ArtifactCoordinates pluginCoordinates = artifact.getArtifactCoordinates(); Optional<String> pluginClassifier = Optional.ofNullable(pluginCoordinates.getClassifier()); return pluginClassifier.isPresent() && MULE_PLUGIN_CLASSIFIER.equals(pluginClassifier.get()); }  static ArtifactCoordinates toArtifactCoordinates(BundleDescriptor bundleDescriptor); static Artifact toArtifact(BundleDependency bundleDependency); static List<Artifact> toArtifacts(Collection<BundleDependency> dependencies); static boolean isValidMulePlugin(Artifact artifact); static BundleDescriptor toBundleDescriptor(ArtifactCoordinates artifactCoordinates); static BundleDescriptor toBundleDescriptor(Dependency dependency); static List<Artifact> toApplicationModelArtifacts(List<BundleDependency> appDependencies); static List<Artifact> updatePackagesResources(List<Artifact> artifacts); static Artifact updatePackagesResources(Artifact artifact); static List<Artifact> updateArtifactsSharedState(List<BundleDependency> appDependencies, List<Artifact> artifacts,
                                                          Model pomModel); static void updateScopeIfDomain(Artifact artifact); static ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel); static BundleDescriptor getPomProjectBundleDescriptor(ApplicationGAVModel appGAVModel); static BundleDescriptor getBundleDescriptor(ApplicationGAVModel appGAVModel);  }