MCPcopy
hub / github.com/OpenTSDB/opentsdb / sortTestSets

Method sortTestSets

test/utils/TestByteArrayPair.java:173–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171 }
172
173 @Test
174 public void sortTestSets() {
175 List<ByteArrayPair> pairs = new ArrayList<ByteArrayPair>(2);
176 pairs.add(new ByteArrayPair(set2, val));
177 pairs.add(new ByteArrayPair(set1, val));
178 Collections.sort(pairs);
179 assertArrayEquals(set1, pairs.get(0).getKey());
180 assertArrayEquals(val, pairs.get(0).getValue());
181 assertArrayEquals(set2, pairs.get(1).getKey());
182 assertArrayEquals(val, pairs.get(1).getValue());
183 }
184
185 @Test
186 public void sortTestWithNullKey() {

Callers

nothing calls this directly

Calls 4

addMethod · 0.45
getKeyMethod · 0.45
getMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected