Project

General

Profile

1
package eu.dnetlib.data.mapreduce.util;
2

    
3
import com.google.protobuf.Descriptors.FieldDescriptor;
4
import eu.dnetlib.data.proto.DNGFProtos.DNGFRel;
5
import eu.dnetlib.data.proto.RelTypeProtos.RelType;
6
import eu.dnetlib.data.proto.RelTypeProtos.SubRelType;
7
import eu.dnetlib.data.proto.SubRelProtos.Authorship;
8
import org.junit.Before;
9
import org.junit.Test;
10

    
11
import static org.junit.Assert.assertEquals;
12
import static org.junit.Assert.assertNotNull;
13

    
14
public class DNGFRelDecoderTest {
15

    
16
	private DNGFRel dngfRel;
17

    
18
	@Before
19
	public void setUp() {
20
		//dngfRel = DNGFTest.getPersonPublication("ID_1", "ID_2", "1", "isAuthor");
21
	}
22

    
23
	@Test
24
	public void testSetClass() {
25

    
26
	}
27

    
28
	@Test
29
	public void testGetCF() {
30
		assertEquals("personPublication_authorship_isAuthorOf", DNGFRelDecoder.getCFQ(RelType.personPublication, SubRelType.authorship, Authorship.RelName.isAuthorOf));
31
		assertEquals("personPublication_authorship_isAuthorOf", DNGFRelDecoder.getCFQ(RelType.personPublication, SubRelType.authorship, "isAuthorOf"));
32
	}
33

    
34
}
(2-2/4)