use of com.google_voltpatches.common.collect.ImmutableSortedMap in project voltdb by VoltDB.
the class TestTheHashinator method checkConfigJSON.
private void checkConfigJSON(ImmutableSortedMap<Integer, Integer> tokens, String JSON) throws JSONException {
final JSONObject jsonData = new JSONObject(JSON);
assertEquals(tokens.size(), jsonData.length());
for (Map.Entry<Integer, Integer> entry : tokens.entrySet()) {
assertEquals(entry.getValue().intValue(), jsonData.getInt(entry.getKey().toString()));
}
}
Aggregations