From: Adam Dickmeiss Date: Tue, 22 Sep 2009 13:21:40 +0000 (+0200) Subject: Add other test case (uses render). X-Git-Tag: v1.0~2 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=12f33b352c7edaab68bb1a5fc0197efa911265d7;p=yaz4j-moved-to-github.git Add other test case (uses render). --- diff --git a/src/test/java/yaz4jtest/DinosaurTest.java b/src/test/java/yaz4jtest/DinosaurTest.java new file mode 100644 index 0000000..971ddf3 --- /dev/null +++ b/src/test/java/yaz4jtest/DinosaurTest.java @@ -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()); + } +}