@Test public void createMuleProjectValidatorMulePolicyPackagingTest() { when(defaultProjectInformationMock.getPackaging()).thenReturn(PackagingType.MULE_POLICY.toString()); AbstractProjectValidator actualProjectValidator = ProjectValidatorFactory .create(defaultProjectInformationMock, aetherMavenClientMock, sharedLibraries, strictCheck); assertThat("Project validator type is not the expected", actualProjectValidator, instanceOf(MuleProjectValidator.class)); }
public static AbstractProjectValidator create(ProjectInformation defaultProjectInformation, AetherMavenClient aetherMavenClient, List<SharedLibraryDependency> sharedLibraries, boolean strictCheck) { ProjectRequirement requirement = new ProjectRequirement.ProjectRequirementBuilder().withStrictCheck(strictCheck).build(); return create(defaultProjectInformation, aetherMavenClient, sharedLibraries, requirement); }
ProjectValidatorFactory { public static AbstractProjectValidator create(ProjectInformation defaultProjectInformation, AetherMavenClient aetherMavenClient, List<SharedLibraryDependency> sharedLibraries, boolean strictCheck) { ProjectRequirement requirement = new ProjectRequirement.ProjectRequirementBuilder().withStrictCheck(strictCheck).build(); return create(defaultProjectInformation, aetherMavenClient, sharedLibraries, requirement); } }
ProjectValidatorFactory { public static AbstractProjectValidator create(ProjectInformation defaultProjectInformation, AetherMavenClient aetherMavenClient, List<SharedLibraryDependency> sharedLibraries, boolean strictCheck) { ProjectRequirement requirement = new ProjectRequirement.ProjectRequirementBuilder().withStrictCheck(strictCheck).build(); return create(defaultProjectInformation, aetherMavenClient, sharedLibraries, requirement); }  }
ProjectValidatorFactory { public static AbstractProjectValidator create(ProjectInformation defaultProjectInformation, AetherMavenClient aetherMavenClient, List<SharedLibraryDependency> sharedLibraries, boolean strictCheck) { ProjectRequirement requirement = new ProjectRequirement.ProjectRequirementBuilder().withStrictCheck(strictCheck).build(); return create(defaultProjectInformation, aetherMavenClient, sharedLibraries, requirement); }  static AbstractProjectValidator create(ProjectInformation defaultProjectInformation,
                                                AetherMavenClient aetherMavenClient,
                                                List<SharedLibraryDependency> sharedLibraries,
                                                boolean strictCheck); static AbstractProjectValidator create(ProjectInformation defaultProjectInformation,
                                                AetherMavenClient aetherMavenClient,
                                                List<SharedLibraryDependency> sharedLibraries,
                                                ProjectRequirement requirement); }
ProjectValidatorFactory { public static AbstractProjectValidator create(ProjectInformation defaultProjectInformation, AetherMavenClient aetherMavenClient, List<SharedLibraryDependency> sharedLibraries, boolean strictCheck) { ProjectRequirement requirement = new ProjectRequirement.ProjectRequirementBuilder().withStrictCheck(strictCheck).build(); return create(defaultProjectInformation, aetherMavenClient, sharedLibraries, requirement); }  static AbstractProjectValidator create(ProjectInformation defaultProjectInformation,
                                                AetherMavenClient aetherMavenClient,
                                                List<SharedLibraryDependency> sharedLibraries,
                                                boolean strictCheck); static AbstractProjectValidator create(ProjectInformation defaultProjectInformation,
                                                AetherMavenClient aetherMavenClient,
                                                List<SharedLibraryDependency> sharedLibraries,
                                                ProjectRequirement requirement);  }