projects
/
yaz4j-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0fc1f63
)
Add ResultSet#getRecords test
author
Jakub Skoczen
<jakub@indexdata.dk>
Mon, 11 Feb 2013 10:43:49 +0000
(11:43 +0100)
committer
Jakub Skoczen
<jakub@indexdata.dk>
Mon, 11 Feb 2013 10:43:49 +0000
(11:43 +0100)
src/test/org/yaz4j/ConnectionTest.java
patch
|
blob
|
history
diff --git
a/src/test/org/yaz4j/ConnectionTest.java
b/src/test/org/yaz4j/ConnectionTest.java
index
ca3d01c
..
056039b
100644
(file)
--- a/
src/test/org/yaz4j/ConnectionTest.java
+++ b/
src/test/org/yaz4j/ConnectionTest.java
@@
-3,6
+3,7
@@
package org.yaz4j;
import org.junit.*;
import static org.junit.Assert.*;
import org.yaz4j.exception.*;
import org.junit.*;
import static org.junit.Assert.*;
import org.yaz4j.exception.*;
+import java.util.List;
public class ConnectionTest {
public class ConnectionTest {
@@
-37,6
+38,13
@@
public class ConnectionTest {
}
System.out.println("Try sorting them...");
s.sort("yaz", "1=4 >i 1=21 >s");
}
System.out.println("Try sorting them...");
s.sort("yaz", "1=4 >i 1=21 >s");
+ System.out.println("Try fetching them all at once...");
+ i = 0;
+ List<Record> all = s.getRecords(0, (int) s.getHitCount());
+ for (Record r : all) {
+ System.out.println("getRecords, rec '"+i+"'"+r.getSyntax());
+ i++;
+ }
} catch (ZoomException ze) {
fail(ze.getMessage());
} finally {
} catch (ZoomException ze) {
fail(ze.getMessage());
} finally {