Revision 53031
Added by Argiro Kokogiannaki over 5 years ago
ContextUtilsTest.java | ||
---|---|---|
14 | 14 |
|
15 | 15 |
String id= "egi::country::gr"; |
16 | 16 |
|
17 |
Assert.assertEquals("EGI Federation> EGI Countries> Greece", ContextUtils.extractLabel(id)); |
|
17 |
Assert.assertEquals("EGI Federation> EGI Countries> Greece", ContextUtils.extractLabel(id, false));
|
|
18 | 18 |
id= "egi"; |
19 |
Assert.assertEquals("EGI Federation", ContextUtils.extractLabel(id)); |
|
19 |
Assert.assertEquals("EGI Federation", ContextUtils.extractLabel(id, false));
|
|
20 | 20 |
id="egi::classification"; |
21 |
Assert.assertEquals("EGI Federation> EGI classification scheme", ContextUtils.extractLabel(id)); |
|
21 |
Assert.assertEquals("EGI Federation> EGI classification scheme", ContextUtils.extractLabel(id, false));
|
|
22 | 22 |
id="egi::classification::natsc"; |
23 |
Assert.assertEquals("EGI Federation> EGI classification scheme> Natural Sciences", ContextUtils.extractLabel(id)); |
|
23 |
Assert.assertEquals("EGI Federation> EGI classification scheme> Natural Sciences", ContextUtils.extractLabel(id, false));
|
|
24 | 24 |
id="egi::classification::natsc::math"; |
25 |
Assert.assertEquals("EGI Federation> EGI classification scheme> Mathematics", ContextUtils.extractLabel(id)); |
|
25 |
Assert.assertEquals("EGI Federation> EGI classification scheme> Mathematics", ContextUtils.extractLabel(id, false));
|
|
26 | 26 |
id="egi::classification::natsc::math::applied"; |
27 |
Assert.assertEquals("EGI Federation> EGI classification scheme> Applied Mathematics", ContextUtils.extractLabel(id)); |
|
27 |
Assert.assertEquals("EGI Federation> EGI classification scheme> Applied Mathematics", ContextUtils.extractLabel(id, false));
|
|
28 | 28 |
id="egi::classification::natsc::math::applied"; |
29 |
Assert.assertEquals("EGI Federation> EGI classification scheme> Applied Mathematics", ContextUtils.extractLabel(id)); |
|
29 |
Assert.assertEquals("EGI Federation> EGI classification scheme> Applied Mathematics", ContextUtils.extractLabel(id, false));
|
|
30 | 30 |
id="aginfra::projects"; |
31 |
Assert.assertEquals("AGINFRA> AGINFRA+ Projects", ContextUtils.extractLabel(id)); |
|
32 |
id="aginfra::projects::1"; |
|
33 |
Assert.assertEquals("AGINFRA> AGINFRA+ Projects> European Foodbusiness Transfer Laboratory for stimulating entrepreneurial skills, for fostering innovation and for business creation in the Food Sector", ContextUtils.extractLabel(id));
|
|
31 |
Assert.assertEquals("AGINFRA> AGINFRA+ Projects", ContextUtils.extractLabel(id, false));
|
|
32 |
id="aginfra::projects::10";
|
|
33 |
Assert.assertEquals("AGINFRA> AGINFRA+ Projects> Integrated and innovative key actions for mycotoxin management in the food and feed chain", ContextUtils.extractLabel(id, false));
|
|
34 | 34 |
|
35 | 35 |
/* |
36 | 36 |
|
Also available in: Unified diff
Parameterize context utils methods with a boolean parameter for productionIndex, add production url
In delete claims method add check for deleting record