971ddf3941aa8603ec742a99864f92c5e6249948
[yaz4j-moved-to-github.git] / src / test / java / yaz4jtest / DinosaurTest.java
1 package yaz4jtest;
2 import org.junit.*;
3 import static org.junit.Assert.*;
4 import org.yaz4j.*;
5
6 /**
7  * @author adam
8  */
9 public class DinosaurTest {
10     @Test
11     public void test() {
12         Connection con = new Connection("z3950.loc.gov:7090/voyager", 0);
13         assertNotNull(con);
14         con.setSyntax("usmarc");
15         PrefixQuery pqf = new PrefixQuery("@attr 1=7 0253333490");
16         assertNotNull(pqf);
17         ResultSet set = con.Search(pqf);
18         assertNotNull(set);
19         Record rec = set.getRecord(0);
20         assertNotNull(rec);
21         // System.out.println(rec.render());
22     }
23 }