@Test public void testCreateProbeResults_invalidHistogram() { testHistogramContainer.addTestHistograms( workerAddress1, "testId", singletonMap("workerProbe", "invalidHistogram")); testHistogramContainer.createProbeResults("testSuiteId", "testId"); assertFalse(probeFile.exists()); }
@Test public void testCreateProbeResults() { String histogram1 = createEncodedHistogram(); testHistogramContainer.addTestHistograms( workerAddress1, "testId", singletonMap("workerProbe", histogram1)); String histogram2 = createEncodedHistogram(); testHistogramContainer.addTestHistograms( workerAddress2, "testId", singletonMap("workerProbe", histogram2)); testHistogramContainer.createProbeResults("testSuiteId", "testId"); assertTrue(probeFile.exists()); }