@Test public void getClassLoaderModelWithOneDependencyThatIsNotMulePluginTest() { List<BundleDependency> appDependencies = new ArrayList<>(); BundleDependency dependency1 = buildBundleDependency(1, 1, EMPTY); appDependencies.add(dependency1); List<BundleDependency> appMulePluginDependencies = new ArrayList<>(); aetherMavenClientMock = getAetherMavenClientMock(appDependencies, appMulePluginDependencies); when(aetherMavenClientMock.resolveBundleDescriptorDependencies(eq(false), eq(false), any())).thenReturn(new ArrayList<>()); ApplicationClassLoaderModelAssembler applicationClassLoaderModelAssemblerSpy = getClassLoaderModelAssemblySpy(aetherMavenClientMock); ApplicationClassloaderModel applicationClassloaderModel = applicationClassLoaderModelAssemblerSpy.getApplicationClassLoaderModel(mock(File.class), mock(ApplicationGAVModel.class)); assertThat("Application dependencies are not the expected", applicationClassloaderModel.getClassLoaderModel().getDependencies(), containsInAnyOrder(toArtifact(dependency1))); assertThat("The application should have no mule plugin dependencies", applicationClassloaderModel.getMulePluginsClassloaderModels().size(), equalTo(0)); }
@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; }