34 |
34 |
|
35 |
35 |
private VelocityEngine ve;
|
36 |
36 |
|
|
37 |
private final String community_api = "http://beta.services.openaire.eu/openaire/community/";
|
|
38 |
|
37 |
39 |
@Mock
|
38 |
40 |
private ISLookUpService lookUpService;
|
39 |
41 |
|
... | ... | |
97 |
99 |
pub.getLinksToProjects().add("info:eu-repo/grantAgreement/EC/FP7/244909/EU/Making Capabilities Work/WorkAble");
|
98 |
100 |
pub.getContexts().add("egi::classification::natsc::math::pure");
|
99 |
101 |
pub.getContexts().add("egi::classification::natsc::math::stats");
|
100 |
|
final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd");
|
|
102 |
final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd",community_api);
|
101 |
103 |
|
102 |
104 |
final Document doc = new SAXReader().read(new StringReader(xml));
|
103 |
105 |
|
... | ... | |
134 |
136 |
pub.getLinksToProjects().add("info:eu-repo/grantAgreement/EC/FP7/244909/EU/Making Capabilities Work/WorkAble");
|
135 |
137 |
pub.getContexts().add("egi::classification::natsc::math::pure");
|
136 |
138 |
pub.getContexts().add("egi::classification::natsc::math::stats");
|
137 |
|
final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd");
|
|
139 |
final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd",community_api);
|
138 |
140 |
|
139 |
141 |
final Document doc = new SAXReader().read(new StringReader(xml));
|
140 |
142 |
|
... | ... | |
172 |
174 |
pub.getLinksToProjects().add("info:eu-repo/grantAgreement/EC/FP7/244909/EU/Making Capabilities Work/WorkAble");
|
173 |
175 |
pub.getContexts().add("egi::classification::natsc::math::pure");
|
174 |
176 |
pub.getContexts().add("egi::classification::natsc::math::stats");
|
175 |
|
final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd");
|
|
177 |
final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd",community_api);
|
176 |
178 |
|
177 |
179 |
final Document doc = new SAXReader().read(new StringReader(xml));
|
178 |
180 |
|
... | ... | |
246 |
248 |
new Gson().fromJson(new InputStreamReader(getClass().getResourceAsStream(filename)), ResultEntry.class);
|
247 |
249 |
|
248 |
250 |
|
249 |
|
final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd");
|
|
251 |
final String xml = pub.asOafRecord(ve, lookUpService, "http://oaf/oaf.xsd",community_api);
|
250 |
252 |
//System.out.println(xml);
|
251 |
253 |
|
252 |
254 |
final Document doc = new SAXReader().read(new StringReader(xml));
|
updated tests