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

Method sortTest

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

Source from the content-addressed store, hash-verified

159 }
160
161 @Test
162 public void sortTest() {
163 List<ByteArrayPair> pairs = new ArrayList<ByteArrayPair>(2);
164 pairs.add(new ByteArrayPair(val, key));
165 pairs.add(new ByteArrayPair(key, val));
166 Collections.sort(pairs);
167 assertArrayEquals(key, pairs.get(0).getKey());
168 assertArrayEquals(val, pairs.get(0).getValue());
169 assertArrayEquals(val, pairs.get(1).getKey());
170 assertArrayEquals(key, pairs.get(1).getValue());
171 }
172
173 @Test
174 public void sortTestSets() {

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