Project

General

Profile

« Previous | Next » 

Revision 53001

test moved in dnet-openaireplus-mapping-utils

View differences:

modules/dnet-pace-core/trunk/src/test/java/eu/dnetlib/pace/config/ConfigTest.java
30 30
		System.out.println(cfg.toString());
31 31
	}
32 32

  
33
	@Test
34
	public void test3() throws IOException {
35

  
36
		final MapDocument docA = MapDocumentSerializer.decode(IOUtils.toString(getClass().getResourceAsStream("docA.json")));
37
		System.out.println(docA);
38

  
39
		final MapDocument docB = MapDocumentSerializer.decode(IOUtils.toString(getClass().getResourceAsStream("docB.json")));
40
		System.out.println(docB);
41

  
42
	}
43

  
44

  
45 33
}
modules/dnet-pace-core/trunk/src/test/resources/eu/dnetlib/pace/config/docB.json
1
{
2
  "identifier": "50|r39ce3fea94a::72493cfa809e56029342e3ae61a75ccf",
3
  "fieldMap": {
4
	"title": [
5
	  [
6
		{
7
		  "value": "A case study for efficient management of high throughput primary lab data",
8
		  "type": "String",
9
		  "name": "title"
10
		}
11
	  ]
12
	],
13
	"url": [
14
	  [
15
		{
16
		  "value": "http://dx.doi.org/10.5447/IPK/2011/0",
17
		  "type": "String",
18
		  "name": "url"
19
		}
20
	  ]
21
	],
22
	"resulttype": [
23
	  [
24
		{
25
		  "value": "software",
26
		  "type": "String",
27
		  "name": "resulttype"
28
		}
29
	  ]
30
	],
31
	"doi": [
32
	  [
33
		{
34
		  "value": "10.5447/IPK/2011/0",
35
		  "type": "String",
36
		  "name": "doi"
37
		}
38
	  ]
39
	]
40
  }
41
}
modules/dnet-pace-core/trunk/src/test/resources/eu/dnetlib/pace/config/docA.json
1
{
2
  "identifier": "50|datacite____::72493cfa809e56029342e3ae61a75ccf",
3
  "fieldMap": {
4
	"title": [
5
	  [
6
		{
7
		  "value": "A case study for efficient management of high throughput primary lab data",
8
		  "type": "String",
9
		  "name": "title"
10
		}
11
	  ]
12
	],
13
	"url": [
14
	  [
15
		{
16
		  "value": "http://dx.doi.org/10.5447/IPK/2011/0",
17
		  "type": "String",
18
		  "name": "url"
19
		}
20
	  ]
21
	],
22
	"resulttype": [
23
	  [
24
		{
25
		  "value": "software",
26
		  "type": "String",
27
		  "name": "resulttype"
28
		}
29
	  ]
30
	],
31
	"doi": [
32
	  [
33
		{
34
		  "value": "10.5447/IPK/2011/0",
35
		  "type": "String",
36
		  "name": "doi"
37
		}
38
	  ]
39
	]
40
  }
41
}

Also available in: Unified diff