From 97a0cb4b067e97b2ba91b39cca4e7f489a71bb50 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 7 Apr 2008 13:59:26 +0200 Subject: [PATCH] Added a test. --- build.xml | 96 +++++++++++++++++++++++++--------------------- test/ConnectionTest.java | 14 +++++++ 2 files changed, 66 insertions(+), 44 deletions(-) create mode 100644 test/ConnectionTest.java diff --git a/build.xml b/build.xml index bd572bd..6b7e985 100644 --- a/build.xml +++ b/build.xml @@ -1,44 +1,52 @@ - - - Build the java side of Yaz4J - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + Build the java side of Yaz4J + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/ConnectionTest.java b/test/ConnectionTest.java new file mode 100644 index 0000000..178356d --- /dev/null +++ b/test/ConnectionTest.java @@ -0,0 +1,14 @@ +package yaz4jtest; +import org.junit.*; +import static org.junit.Assert.*; +import java.util.*; + +public class ConnectionTest { + @Test + public void testConnection() { + org.yaz4j.Connection con = new org.yaz4j.Connection("indexdata.dk:210/gils", 0); + assertNotNull(con); + org.yaz4j.PrefixQuery pqf = new org.yaz4j.PrefixQuery("@attr 1=4 utah"); + con.Search(pqf); + } +} -- 1.7.10.4