Revision 48701
Added by Sandro La Bruzzo over 6 years ago
TitleOrderingTest.java | ||
---|---|---|
7 | 7 |
import java.util.Queue; |
8 | 8 |
import java.util.UUID; |
9 | 9 |
|
10 |
import eu.dnetlib.data.mapreduce.hbase.dedup.kv.DNGFKey; |
|
11 |
import eu.dnetlib.data.mapreduce.hbase.dli.kv.DliKey; |
|
10 | 12 |
import org.apache.commons.io.IOUtils; |
13 |
import org.junit.Assert; |
|
11 | 14 |
import org.junit.Before; |
12 | 15 |
import org.junit.Test; |
13 | 16 |
import org.springframework.core.io.ClassPathResource; |
... | ... | |
89 | 92 |
return q; |
90 | 93 |
} |
91 | 94 |
|
95 |
|
|
96 |
@Test |
|
97 |
public void compareDLIKey() { |
|
98 |
|
|
99 |
DNGFKey k1 = DNGFKey.mergesRel("a"); |
|
100 |
DNGFKey k2 = DNGFKey.otherRel("a"); |
|
101 |
|
|
102 |
Assert.assertEquals(-1, k1.compareTo(k2)); |
|
103 |
Assert.assertEquals(0, k1.compareTo(k1)); |
|
104 |
Assert.assertEquals(1, k2.compareTo(k1)); |
|
105 |
|
|
106 |
|
|
107 |
} |
|
108 |
|
|
92 | 109 |
} |
Also available in: Unified diff
Upgraded incremental harvesting and other stuff