Project

General

Profile

« Previous | Next » 

Revision 50582

fixed 'next' method of the iterator class and added new field entityPath

View differences:

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