Property p = new PropertyImpl(name, comparator, low, high); if (ignore_prop) p.setIgnoreProperty(true); p.setLookupBehaviour(lookup); properties.add(p);
@Test public void testIgnoreProperty() throws IOException { // make email an ignored property Property prop = config.getPropertyByName("EMAIL"); prop.setIgnoreProperty(true); // now run, and see that it doesn't match Collection<Record> records = new ArrayList(); records.add(TestUtils.makeRecord("ID", "1", "NAME", "aaaaa", "EMAIL", "BBBBB")); records.add(TestUtils.makeRecord("ID", "2", "NAME", "aaaaa", "EMAIL", "BBBBB")); processor.deduplicate(records); // no matches found assertEquals(0, listener.getMatches().size()); }
Property p = new PropertyImpl(name, comparator, low, high); if (ignore_prop) p.setIgnoreProperty(true); p.setLookupBehaviour(lookup); properties.add(p);