forked from D-Net/dnet-hadoop
Ignore timestamp differences in PromoteActionPayloadForGraphTableJobTest
This commit is contained in:
parent
dba34505de
commit
0210a14e43
|
@ -156,6 +156,10 @@ public class PromoteActionPayloadForGraphTableJobTest {
|
||||||
List<? extends Oaf> actualOutputRows = readGraphTableFromJobOutput(outputGraphTableDir.toString(), rowClazz)
|
List<? extends Oaf> actualOutputRows = readGraphTableFromJobOutput(outputGraphTableDir.toString(), rowClazz)
|
||||||
.collectAsList()
|
.collectAsList()
|
||||||
.stream()
|
.stream()
|
||||||
|
.map(s -> {
|
||||||
|
s.setLastupdatetimestamp(0L);
|
||||||
|
return s;
|
||||||
|
})
|
||||||
.sorted(Comparator.comparingInt(Object::hashCode))
|
.sorted(Comparator.comparingInt(Object::hashCode))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
String expectedOutputGraphTableJsonDumpPath = resultFileLocation(strategy, rowClazz, actionPayloadClazz);
|
String expectedOutputGraphTableJsonDumpPath = resultFileLocation(strategy, rowClazz, actionPayloadClazz);
|
||||||
|
@ -168,6 +172,10 @@ public class PromoteActionPayloadForGraphTableJobTest {
|
||||||
expectedOutputGraphTableJsonDumpFile.toString(), rowClazz)
|
expectedOutputGraphTableJsonDumpFile.toString(), rowClazz)
|
||||||
.collectAsList()
|
.collectAsList()
|
||||||
.stream()
|
.stream()
|
||||||
|
.map(s -> {
|
||||||
|
s.setLastupdatetimestamp(0L);
|
||||||
|
return s;
|
||||||
|
})
|
||||||
.sorted(Comparator.comparingInt(Object::hashCode))
|
.sorted(Comparator.comparingInt(Object::hashCode))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
assertIterableEquals(expectedOutputRows, actualOutputRows);
|
assertIterableEquals(expectedOutputRows, actualOutputRows);
|
||||||
|
|
Loading…
Reference in New Issue