aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/client/test/ClientTest.java
diff options
context:
space:
mode:
authorMatt Windsor <matt@deling.(none)>2011-03-18 08:28:09 +0000
committerMatt Windsor <matt@deling.(none)>2011-03-18 08:28:09 +0000
commitd547f87da5f68c12dede7c9d45618cae11ff5699 (patch)
tree613aa95d94b363c72ba9a7be639c74f76edf81f8 /src/uk/org/ury/client/test/ClientTest.java
parentc8bb324e757587e742df0824304144e1eb881cee (diff)
Mega-commit to the rescue! Added Javadoc snapshot (admittedly old); show UI now fixed-layout; UI uses system selection colours for accents; now uses bapsserver password and can thus talk to show database relations; removed member relation dependencies until further notice; attempted to get application and applet launchers working but having issues with the latter; started working on a server communicating via a minimal implementation of HTTP 1.1 (standardisation required eventually).
Diffstat (limited to 'src/uk/org/ury/client/test/ClientTest.java')
-rw-r--r--src/uk/org/ury/client/test/ClientTest.java64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/uk/org/ury/client/test/ClientTest.java b/src/uk/org/ury/client/test/ClientTest.java
new file mode 100644
index 0000000..085bebb
--- /dev/null
+++ b/src/uk/org/ury/client/test/ClientTest.java
@@ -0,0 +1,64 @@
+/**
+ *
+ */
+package uk.org.ury.client.test;
+
+import static org.junit.Assert.*;
+
+import java.util.List;
+
+import junit.framework.Assert;
+
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+import uk.org.ury.client.Client;
+
+/**
+ * JUnit test for the low-level client logic.
+ *
+ * @author Matt Windsor
+ */
+
+public class ClientTest
+{
+
+ /**
+ * @throws java.lang.Exception
+ */
+
+ @Before
+ public void
+ setUp () throws Exception
+ {
+ }
+
+
+ /**
+ * @throws java.lang.Exception
+ */
+
+ @After
+ public void
+ tearDown () throws Exception
+ {
+ }
+
+
+ /**
+ * Test method for {@link uk.org.ury.client.Client#get(java.lang.String)}.
+ */
+
+ @Test
+ public void
+ testGet ()
+ {
+ Client client = new Client ();
+
+ List<String> response = client.get ("/server/ServerRequestHandler?function=test");
+
+ Assert.assertEquals ("INFO: Test succeeded.", response.get (2));
+ }
+
+}