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