@Test public void withoutDuplicatesTest() { final Map<String, ExtendedRecord> input = createErMap("1_1", "2_2", "3_3", "4_4", "5_5", "6_6"); final Map<String, BasicRecord> expected = createBrGbifIdMap("1_1", "2_2", "3_3", "4_4", "5_5", "6_6"); UniqueGbifIdTransform gbifIdTransform = UniqueGbifIdTransform.builder().erMap(input).basicTransform(basicTransform).build().run(); Map<String, BasicRecord> brMap = gbifIdTransform.getBrMap(); Map<String, BasicRecord> brInvalidMap = gbifIdTransform.getBrInvalidMap(); Assert.assertEquals(expected.size(), brMap.size()); Assert.assertEquals(0, brInvalidMap.size()); assertMap(expected, brMap); }
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();  }