Revision 47417
Added by Michele Artini almost 7 years ago
modules/dnet-openaireplus-workflows/trunk/src/test/java/eu/dnetlib/msro/openaireplus/api/OpenAIRESubmitterUtilsTest.java | ||
---|---|---|
3 | 3 |
import java.util.Map; |
4 | 4 |
import java.util.Map.Entry; |
5 | 5 |
|
6 |
import org.junit.Ignore; |
|
7 | 6 |
import org.junit.Test; |
8 | 7 |
|
9 | 8 |
/** |
... | ... | |
20 | 19 |
final String onlyTitle = "info:eu-repo/grantAgreement/EC/FP7/244909/EU/Making Capabilities Work"; |
21 | 20 |
|
22 | 21 |
@Test |
23 |
public void testCalculateProjectInfoFull(){ |
|
24 |
Map<String, String> project = utils.calculateProjectInfo(fullProject); |
|
22 |
public void testCalculateProjectInfoFull() {
|
|
23 |
final Map<String, String> project = utils.calculateProjectInfo(fullProject);
|
|
25 | 24 |
print(project); |
26 | 25 |
} |
27 | 26 |
|
28 | 27 |
@Test |
29 |
public void testCalculateProjectInfoMinimalAcro(){ |
|
30 |
Map<String, String> project = utils.calculateProjectInfo(minimalProject); |
|
28 |
public void testCalculateProjectInfoMinimalAcro() {
|
|
29 |
final Map<String, String> project = utils.calculateProjectInfo(minimalProject);
|
|
31 | 30 |
print(project); |
32 | 31 |
} |
33 | 32 |
|
34 |
@Ignore
|
|
35 |
public void testCalculateProjectInfoOnlyTitle(){ |
|
36 |
Map<String, String> project = utils.calculateProjectInfo(onlyTitle); |
|
33 |
@Test
|
|
34 |
public void testCalculateProjectInfoOnlyTitle() {
|
|
35 |
final Map<String, String> project = utils.calculateProjectInfo(onlyTitle);
|
|
37 | 36 |
print(project); |
38 | 37 |
} |
39 | 38 |
|
40 |
private void print(Map<String, String> map){
|
|
41 |
for(Entry e : map.entrySet()){
|
|
42 |
System.out.println(e.getKey()+" = "+e.getValue());
|
|
39 |
private void print(final Map<String, String> map) {
|
|
40 |
for (final Entry e : map.entrySet()) {
|
|
41 |
System.out.println(e.getKey() + " = " + e.getValue());
|
|
43 | 42 |
} |
44 | 43 |
} |
45 | 44 |
} |
Also available in: Unified diff
Direct index API: projects without acronym (test)