@Test public void getClassLoaderModelWithOneDependencyThatIsAMulePluginTest() { List<BundleDependency> appDependencies = new ArrayList<>(); BundleDependency mulePluginTransitiveDependency1 = buildBundleDependency(1, 1, EMPTY); BundleDependency firstMulePlugin = buildBundleDependency(2, 3, MULE_PLUGIN_CLASSIFIER, VERSION, singletonList(mulePluginTransitiveDependency1)).build(); aetherMavenClientMock = getAetherMavenClientMock(appDependencies, singletonList(firstMulePlugin)); ApplicationClassLoaderModelAssembler applicationClassLoaderModelAssemblerSpy = getClassLoaderModelAssemblySpy(aetherMavenClientMock); ApplicationClassloaderModel applicationClassloaderModel = applicationClassLoaderModelAssemblerSpy.getApplicationClassLoaderModel(mock(File.class), mock(ApplicationGAVModel.class)); assertThat("The class loader model should have one dependency", applicationClassloaderModel.getClassLoaderModel().getDependencies().size(), equalTo(1)); assertThat("Mule plugins are not the expected", applicationClassloaderModel.getClassLoaderModel().getDependencies(), containsInAnyOrder(toArtifact(firstMulePlugin))); assertThat("First mule plugin dependencies are not the expected", applicationClassloaderModel.getMulePluginsClassloaderModels().get(0).getDependencies(), containsInAnyOrder(toArtifact(mulePluginTransitiveDependency1))); }
@Deprecated public ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, ApplicationGAVModel appGAVModel) throws IllegalStateException { return getApplicationClassLoaderModel(pomFile, null, appGAVModel, false, empty()); }
ApplicationClassLoaderModelAssembler { @Deprecated public ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, ApplicationGAVModel appGAVModel) throws IllegalStateException { return getApplicationClassLoaderModel(pomFile, null, appGAVModel, false, empty()); } }
ApplicationClassLoaderModelAssembler { @Deprecated public ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, ApplicationGAVModel appGAVModel) throws IllegalStateException { return getApplicationClassLoaderModel(pomFile, null, appGAVModel, false, empty()); } @Deprecated  ApplicationClassLoaderModelAssembler(AetherMavenClient aetherMavenClient, File temporaryFolder);  ApplicationClassLoaderModelAssembler(ApplicationDependencyResolver applicationDependencyResolver,
                                              ClassloaderModelResolver mulePluginClassLoaderModelResolver,
                                              AdditionalPluginDependenciesResolver additionalPluginDependenciesResolver,
                                              JarExplorer jarExplorer); }
ApplicationClassLoaderModelAssembler { @Deprecated public ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, ApplicationGAVModel appGAVModel) throws IllegalStateException { return getApplicationClassLoaderModel(pomFile, null, appGAVModel, false, empty()); } @Deprecated  ApplicationClassLoaderModelAssembler(AetherMavenClient aetherMavenClient, File temporaryFolder);  ApplicationClassLoaderModelAssembler(ApplicationDependencyResolver applicationDependencyResolver,
                                              ClassloaderModelResolver mulePluginClassLoaderModelResolver,
                                              AdditionalPluginDependenciesResolver additionalPluginDependenciesResolver,
                                              JarExplorer jarExplorer); @Deprecated ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, ApplicationGAVModel appGAVModel); @Deprecated ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, File outputDirectory,
                                                                    ApplicationGAVModel appGAVModel,
                                                                    boolean includeTestDependencies); ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, File outputDirectory,
                                                                    ApplicationGAVModel appGAVModel,
                                                                    boolean includeTestDependencies,
                                                                    Optional<MavenReactorResolver> mavenReactorResolver); ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel); }
ApplicationClassLoaderModelAssembler { @Deprecated public ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, ApplicationGAVModel appGAVModel) throws IllegalStateException { return getApplicationClassLoaderModel(pomFile, null, appGAVModel, false, empty()); } @Deprecated  ApplicationClassLoaderModelAssembler(AetherMavenClient aetherMavenClient, File temporaryFolder);  ApplicationClassLoaderModelAssembler(ApplicationDependencyResolver applicationDependencyResolver,
                                              ClassloaderModelResolver mulePluginClassLoaderModelResolver,
                                              AdditionalPluginDependenciesResolver additionalPluginDependenciesResolver,
                                              JarExplorer jarExplorer); @Deprecated ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, ApplicationGAVModel appGAVModel); @Deprecated ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, File outputDirectory,
                                                                    ApplicationGAVModel appGAVModel,
                                                                    boolean includeTestDependencies); ApplicationClassloaderModel getApplicationClassLoaderModel(File pomFile, File outputDirectory,
                                                                    ApplicationGAVModel appGAVModel,
                                                                    boolean includeTestDependencies,
                                                                    Optional<MavenReactorResolver> mavenReactorResolver); ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel); static final String CLASS_LOADER_MODEL_VERSION; static final String CLASSES; }