@Test public void mixedValuesSyncTest() { final Map<String, ExtendedRecord> input = createErMap("1", "2_2", "3_3", "4_1", "5", "6_6"); final Map<String, BasicRecord> expectedNormal = createBrGbifIdMap("2_2", "3_3", "4_1", "6_6"); final Map<String, BasicRecord> expectedInvalid = createBrIdMap("1", "5"); UniqueGbifIdTransform gbifIdTransform = UniqueGbifIdTransform.builder() .erMap(input) .basicTransform(basicTransform) .useSyncMode(true) .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();  }