@Test public void testGetIncompatibleValues() { Assert.assertNotNull(window.getIncompatibleValues()); BrokenCompatibilityWindow brokenWindow = new BrokenCompatibilityWindow(); Map<JreDeflateParameters, String> incompatible = brokenWindow.getIncompatibleValues(); Assert.assertTrue(incompatible.containsKey(brokenParameters)); InfallibleCompatibilityWindow infallible = new InfallibleCompatibilityWindow(); Assert.assertTrue(infallible.getIncompatibleValues().isEmpty()); }
public Map<JreDeflateParameters, String> getIncompatibleValues() { Map<JreDeflateParameters, String> incompatible = new HashMap<JreDeflateParameters, String>(); Map<JreDeflateParameters, String> systemValues = getSystemValues(); for (Map.Entry<JreDeflateParameters, String> baselineEntry : getBaselineValues().entrySet()) { String computedSHA256 = systemValues.get(baselineEntry.getKey()); if (!computedSHA256.equals(baselineEntry.getValue())) { incompatible.put(baselineEntry.getKey(), computedSHA256); } } return incompatible; }
DefaultDeflateCompatibilityWindow { public Map<JreDeflateParameters, String> getIncompatibleValues() { Map<JreDeflateParameters, String> incompatible = new HashMap<JreDeflateParameters, String>(); Map<JreDeflateParameters, String> systemValues = getSystemValues(); for (Map.Entry<JreDeflateParameters, String> baselineEntry : getBaselineValues().entrySet()) { String computedSHA256 = systemValues.get(baselineEntry.getKey()); if (!computedSHA256.equals(baselineEntry.getValue())) { incompatible.put(baselineEntry.getKey(), computedSHA256); } } return incompatible; } }
DefaultDeflateCompatibilityWindow { public Map<JreDeflateParameters, String> getIncompatibleValues() { Map<JreDeflateParameters, String> incompatible = new HashMap<JreDeflateParameters, String>(); Map<JreDeflateParameters, String> systemValues = getSystemValues(); for (Map.Entry<JreDeflateParameters, String> baselineEntry : getBaselineValues().entrySet()) { String computedSHA256 = systemValues.get(baselineEntry.getKey()); if (!computedSHA256.equals(baselineEntry.getValue())) { incompatible.put(baselineEntry.getKey(), computedSHA256); } } return incompatible; }  }
DefaultDeflateCompatibilityWindow { public Map<JreDeflateParameters, String> getIncompatibleValues() { Map<JreDeflateParameters, String> incompatible = new HashMap<JreDeflateParameters, String>(); Map<JreDeflateParameters, String> systemValues = getSystemValues(); for (Map.Entry<JreDeflateParameters, String> baselineEntry : getBaselineValues().entrySet()) { String computedSHA256 = systemValues.get(baselineEntry.getKey()); if (!computedSHA256.equals(baselineEntry.getValue())) { incompatible.put(baselineEntry.getKey(), computedSHA256); } } return incompatible; }  Map<JreDeflateParameters, String> getBaselineValues(); byte[] getCorpus(); boolean isCompatible(); Map<JreDeflateParameters, String> getIncompatibleValues(); Map<JreDeflateParameters, String> getSystemValues(); }
DefaultDeflateCompatibilityWindow { public Map<JreDeflateParameters, String> getIncompatibleValues() { Map<JreDeflateParameters, String> incompatible = new HashMap<JreDeflateParameters, String>(); Map<JreDeflateParameters, String> systemValues = getSystemValues(); for (Map.Entry<JreDeflateParameters, String> baselineEntry : getBaselineValues().entrySet()) { String computedSHA256 = systemValues.get(baselineEntry.getKey()); if (!computedSHA256.equals(baselineEntry.getValue())) { incompatible.put(baselineEntry.getKey(), computedSHA256); } } return incompatible; }  Map<JreDeflateParameters, String> getBaselineValues(); byte[] getCorpus(); boolean isCompatible(); Map<JreDeflateParameters, String> getIncompatibleValues(); Map<JreDeflateParameters, String> getSystemValues();  }