Add other test case (uses render).
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 22 Sep 2009 13:21:40 +0000 (15:21 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 22 Sep 2009 13:21:40 +0000 (15:21 +0200)
src/test/java/yaz4jtest/DinosaurTest.java [new file with mode: 0644]

diff --git a/src/test/java/yaz4jtest/DinosaurTest.java b/src/test/java/yaz4jtest/DinosaurTest.java
new file mode 100644 (file)
index 0000000..971ddf3
--- /dev/null
@@ -0,0 +1,23 @@
+package yaz4jtest;
+import org.junit.*;
+import static org.junit.Assert.*;
+import org.yaz4j.*;
+
+/**
+ * @author adam
+ */
+public class DinosaurTest {
+    @Test
+    public void test() {
+        Connection con = new Connection("z3950.loc.gov:7090/voyager", 0);
+        assertNotNull(con);
+        con.setSyntax("usmarc");
+        PrefixQuery pqf = new PrefixQuery("@attr 1=7 0253333490");
+        assertNotNull(pqf);
+        ResultSet set = con.Search(pqf);
+        assertNotNull(set);
+        Record rec = set.getRecord(0);
+       assertNotNull(rec);
+       // System.out.println(rec.render());
+    }
+}