Project

General

Profile

« Previous | Next » 

Revision 44949

fixed test

View differences:

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

  
3
import com.google.protobuf.Descriptors.FieldDescriptor;
4 3
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 4
import org.junit.Before;
9 5
import org.junit.Test;
10 6

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

  
14 7
public class DNGFRelDecoderTest {
15 8

  
16 9
	private DNGFRel dngfRel;
......
27 20

  
28 21
	@Test
29 22
	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 23

  
24
    }
25

  
34 26
}

Also available in: Unified diff