@Test(dataProvider = "negativeDownloadFileSpecProvider", expectedExceptions = {JsonMappingException.class, IllegalArgumentException.class}) public void testNegativeDownloadSpecFromFile(String specFileName) throws IOException { SpecsHelper specsHelper = new SpecsHelper(new NullLog()); File fileSpec = getFileFromResources("negativeTestSpecs/" + specFileName); specsHelper.getSpecFromFile(fileSpec, downloadSpecValidator); }
public Spec getSpecFromFile(File specFile, SpecsValidator specsValidator) throws IOException { return getSpecFromString(FileUtils.readFileToString(specFile), specsValidator); }
SpecsHelper { public Spec getSpecFromFile(File specFile, SpecsValidator specsValidator) throws IOException { return getSpecFromString(FileUtils.readFileToString(specFile), specsValidator); } }
SpecsHelper { public Spec getSpecFromFile(File specFile, SpecsValidator specsValidator) throws IOException { return getSpecFromString(FileUtils.readFileToString(specFile), specsValidator); } SpecsHelper(Log log); }
SpecsHelper { public Spec getSpecFromFile(File specFile, SpecsValidator specsValidator) throws IOException { return getSpecFromString(FileUtils.readFileToString(specFile), specsValidator); } SpecsHelper(Log log); List<Artifact> uploadArtifactsBySpec(String uploadSpec, File workspace,
                                                Map<String, String> buildProperties,
                                                ArtifactoryBuildInfoClientBuilder clientBuilder); List<Artifact> uploadArtifactsBySpec(String uploadSpec, File workspace,
                                                Multimap<String, String> buildProperties,
                                                ArtifactoryBuildInfoClientBuilder clientBuilder); List<Artifact> uploadArtifactsBySpec(String uploadSpec, int numberOfThreads, File workspace,
                                                Multimap<String, String> buildProperties,
                                                ArtifactoryBuildInfoClientBuilder clientBuilder); static Multimap<K, V> createMultiMap(Map<K, V> input); List<Dependency> downloadArtifactsBySpec(String spec, ArtifactoryDependenciesClient client, String targetDirectory); Spec getSpecFromFile(File specFile, SpecsValidator specsValidator); Spec getSpecFromString(String specStr, SpecsValidator specsValidator); @SuppressWarnings("unused") boolean editPropertiesBySpec(String spec, ArtifactoryDependenciesClient client,
                                        EditPropertiesHelper.EditPropertiesActionType editType, String props); static ArrayListMultimap<String, String> getPropertiesMap(String props); static void fillPropertiesMap(String props, ArrayListMultimap<String, String> propertiesMap); }
SpecsHelper { public Spec getSpecFromFile(File specFile, SpecsValidator specsValidator) throws IOException { return getSpecFromString(FileUtils.readFileToString(specFile), specsValidator); } SpecsHelper(Log log); List<Artifact> uploadArtifactsBySpec(String uploadSpec, File workspace,
                                                Map<String, String> buildProperties,
                                                ArtifactoryBuildInfoClientBuilder clientBuilder); List<Artifact> uploadArtifactsBySpec(String uploadSpec, File workspace,
                                                Multimap<String, String> buildProperties,
                                                ArtifactoryBuildInfoClientBuilder clientBuilder); List<Artifact> uploadArtifactsBySpec(String uploadSpec, int numberOfThreads, File workspace,
                                                Multimap<String, String> buildProperties,
                                                ArtifactoryBuildInfoClientBuilder clientBuilder); static Multimap<K, V> createMultiMap(Map<K, V> input); List<Dependency> downloadArtifactsBySpec(String spec, ArtifactoryDependenciesClient client, String targetDirectory); Spec getSpecFromFile(File specFile, SpecsValidator specsValidator); Spec getSpecFromString(String specStr, SpecsValidator specsValidator); @SuppressWarnings("unused") boolean editPropertiesBySpec(String spec, ArtifactoryDependenciesClient client,
                                        EditPropertiesHelper.EditPropertiesActionType editType, String props); static ArrayListMultimap<String, String> getPropertiesMap(String props); static void fillPropertiesMap(String props, ArrayListMultimap<String, String> propertiesMap);  }