Project

General

Profile

« Previous | Next » 

Revision 58672

ensure we have the proper identifiers in the list of original source and target objects. They may, as it used to be, contain also representative identifiers. Asking for them should be enough to completely blacklist a relationship

View differences:

OpenaireIdResolverTest.java
1 1
package eu.dnetlib.openaire.blacklist;
2 2

  
3
import java.util.List;
3
import java.util.Set;
4 4

  
5 5
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService;
6 6
import eu.dnetlib.enabling.locators.UniqueServiceLocator;
......
44 44
	@Test
45 45
	public void testFindOriginalIds() throws Exception {
46 46
		log.debug("Testing for " + id);
47
		List<String> originals = resolver.findOriginalIds(id);
47
		Set<String> originals = resolver.findOriginalIds(id);
48 48
		Assert.assertTrue(originals.contains("od_______165::deb6d865011c09f228af41a30e0ff1a4"));
49 49
		Assert.assertTrue(originals.contains("od_______165::00066fdc65f1e21677c69d976a8e852d"));
50 50
		Assert.assertTrue(originals.size() == 2);

Also available in: Unified diff