@Test public void allDuplicatesTest() { final Map<String, ExtendedRecord> input = createErMap("1_1", "2_1", "3_1", "4_1", "5_1", "6_1"); final Map<String, BasicRecord> expectedNormal = createBrGbifIdMap("4_1"); final Map<String, BasicRecord> expectedInvalid = createBrIdMap("1_1", "2_1", "3_1", "5_1", "6_1"); UniqueGbifIdTransform gbifIdTransform = UniqueGbifIdTransform.builder().erMap(input).basicTransform(basicTransform).build().run(); Map<String, BasicRecord> brMap = gbifIdTransform.getBrMap(); Map<String, BasicRecord> brInvalidMap = gbifIdTransform.getBrInvalidMap(); Assert.assertEquals(expectedNormal.size(), brMap.size()); Assert.assertEquals(expectedInvalid.size(), brInvalidMap.size()); assertMap(expectedNormal, brMap); assertMap(expectedInvalid, brInvalidMap); }
public UniqueGbifIdTransform run() { return useSyncMode ? runSync() : runAsync(); }
UniqueGbifIdTransform { public UniqueGbifIdTransform run() { return useSyncMode ? runSync() : runAsync(); } }
UniqueGbifIdTransform { public UniqueGbifIdTransform run() { return useSyncMode ? runSync() : runAsync(); }  }
UniqueGbifIdTransform { public UniqueGbifIdTransform run() { return useSyncMode ? runSync() : runAsync(); }  UniqueGbifIdTransform run(); }
UniqueGbifIdTransform { public UniqueGbifIdTransform run() { return useSyncMode ? runSync() : runAsync(); }  UniqueGbifIdTransform run();  }