private Optional<TestOutcomes> loadOutcomes() { TestOutcomes outcomes = null; try { outcomes = TestOutcomeLoader.loadTestOutcomes().inFormat(OutcomeFormat.JSON).from(outputDirectory); if (outcomes.getTotal() == 0) { outcomes = TestOutcomeLoader.loadTestOutcomes().inFormat(OutcomeFormat.XML).from(outputDirectory); } } catch (IOException e) { e.printStackTrace(); } return Optional.of(outcomes); } }
private Optional<TestOutcomes> loadOutcomes() { TestOutcomes outcomes = null; try { outcomes = TestOutcomeLoader.loadTestOutcomes().inFormat(OutcomeFormat.JSON).from(outputDirectory); if (outcomes.getTotal() == 0) { outcomes = TestOutcomeLoader.loadTestOutcomes().inFormat(OutcomeFormat.XML).from(outputDirectory); } } catch (IOException e) { e.printStackTrace(); } return Optional.of(outcomes); } }
private Optional<TestOutcomes> loadOutcomes() { TestOutcomes outcomes = null; try { outcomes = TestOutcomeLoader.loadTestOutcomes().inFormat(OutcomeFormat.JSON).from(outputDirectory); if (outcomes.getTotal() == 0) { outcomes = TestOutcomeLoader.loadTestOutcomes().inFormat(OutcomeFormat.XML).from(outputDirectory); } if (thereAreTagsIn(tags)) { outcomes = outcomes.withTags(tags); } } catch (IOException e) { e.printStackTrace(); } return Optional.ofNullable(outcomes); }
private TestOutcomes loadTestOutcomesFrom(File sourceDirectory) throws IOException { return TestOutcomeLoader.loadTestOutcomes().inFormat(getFormat()).from(sourceDirectory).withHistory().withRequirementsTags(); }
private TestOutcomes loadTestOutcomesFrom(File sourceDirectory) throws IOException { return TestOutcomeLoader.loadTestOutcomes().inFormat(getFormat()).from(sourceDirectory).withHistory().withRequirementsTags(); }