Revision 50582
Added by Jochen Schirrwagen about 6 years ago
RestIteratorTest.java | ||
---|---|---|
17 | 17 |
private String resumptionParam = "from"; |
18 | 18 |
private String resumptionXpath = ""; |
19 | 19 |
private String resultTotalXpath = "//hits/total"; |
20 |
private String entityXpath = "//hits/hits"; |
|
20 | 21 |
private String resultFormatParam = "format"; |
21 | 22 |
private String resultFormatValue = "json"; |
22 | 23 |
private String resultSizeParam = "size"; |
... | ... | |
26 | 27 |
@Ignore |
27 | 28 |
@Test |
28 | 29 |
public void test(){ |
29 |
final RestIterator iterator = new RestIterator(baseUrl, resumptionType, resumptionParam, resumptionXpath, resultTotalXpath, resultFormatParam, resultFormatValue, resultSizeParam, query); |
|
30 |
final RestIterator iterator = new RestIterator(baseUrl, resumptionType, resumptionParam, resumptionXpath, resultTotalXpath, resultFormatParam, resultFormatValue, resultSizeParam, query, entityXpath);
|
|
30 | 31 |
int i =20; |
31 | 32 |
while (iterator.hasNext() && i > 0) { |
32 | 33 |
String result = iterator.next(); |
Also available in: Unified diff
fixed 'next' method of the iterator class and added new field entityPath