master #59
|
@ -18,6 +18,7 @@ import java.util.Objects;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
import eu.dnetlib.dhp.schema.common.ModelConstants;
|
||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
@ -252,6 +253,18 @@ public class MigrateDbEntitiesApplicationTest {
|
||||||
assertValidId(r2.getSource());
|
assertValidId(r2.getSource());
|
||||||
assertEquals(r1.getSource(), r2.getTarget());
|
assertEquals(r1.getSource(), r2.getTarget());
|
||||||
assertEquals(r2.getSource(), r1.getTarget());
|
assertEquals(r2.getSource(), r1.getTarget());
|
||||||
|
|
||||||
|
assertTrue(r1.getSource().startsWith("10|"));
|
||||||
|
assertTrue(r1.getTarget().startsWith("20|"));
|
||||||
|
|
||||||
|
assertEquals(ModelConstants.DATASOURCE_ORGANIZATION, r1.getRelType());
|
||||||
|
assertEquals(ModelConstants.DATASOURCE_ORGANIZATION, r2.getRelType());
|
||||||
|
|
||||||
|
assertEquals(ModelConstants.PROVISION, r1.getSubRelType());
|
||||||
|
assertEquals(ModelConstants.PROVISION, r2.getSubRelType());
|
||||||
|
|
||||||
|
assertEquals(ModelConstants.IS_PROVIDED_BY, r1.getRelClass());
|
||||||
|
assertEquals(ModelConstants.PROVIDES, r2.getRelClass());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in New Issue