use of org.bboxdb.storage.util.EntityDuplicateTracker in project bboxdb by jnidzwetzki.
the class TestTupleDuplicateRemover method testTupleDuplicateRemoverDiffKey.
@Test(timeout = 60000)
public void testTupleDuplicateRemoverDiffKey() {
final EntityDuplicateTracker tupleDuplicateRemover = new EntityDuplicateTracker();
final Tuple tuple1 = new Tuple("key1", BoundingBox.FULL_SPACE, "".getBytes(), 1);
Assert.assertFalse(tupleDuplicateRemover.isElementAlreadySeen(tuple1));
Assert.assertTrue(tupleDuplicateRemover.isElementAlreadySeen(tuple1));
final Tuple tuple2 = new Tuple("key2", BoundingBox.FULL_SPACE, "".getBytes(), 1);
Assert.assertFalse(tupleDuplicateRemover.isElementAlreadySeen(tuple2));
Assert.assertTrue(tupleDuplicateRemover.isElementAlreadySeen(tuple2));
}
Aggregations