aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/client/test/ClientTest.java
diff options
context:
space:
mode:
authorMatt Windsor <mattwindsor@btinternet.com>2011-03-20 16:38:51 +0000
committerMatt Windsor <mattwindsor@btinternet.com>2011-03-20 16:38:51 +0000
commitcee53b021632c95f1b4882664a31ca639a9b0700 (patch)
tree436215d8d67a659f20ca6d911bc4e9b7a23a4675 /src/uk/org/ury/client/test/ClientTest.java
parent0a4133a08038b1d867a78be20dd6afafbd0b09d1 (diff)
Rewrite of server to use HttpCore example code; beginning of code reformat from GNU style to Java conventions. Code now includes Apache license code.
Diffstat (limited to 'src/uk/org/ury/client/test/ClientTest.java')
-rw-r--r--src/uk/org/ury/client/test/ClientTest.java84
1 files changed, 34 insertions, 50 deletions
diff --git a/src/uk/org/ury/client/test/ClientTest.java b/src/uk/org/ury/client/test/ClientTest.java
index 707a80f..3ee70ef 100644
--- a/src/uk/org/ury/client/test/ClientTest.java
+++ b/src/uk/org/ury/client/test/ClientTest.java
@@ -15,59 +15,43 @@ import uk.org.ury.client.Client;
import uk.org.ury.protocol.Directive;
import uk.org.ury.protocol.exceptions.DecodeFailureException;
-
/**
* 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 ();
-
- Map<?, ?> response = null;
-
- try
- {
- response = client.get ("/server/ServerRequestHandler?function=test");
- }
- catch (DecodeFailureException e)
- {
- e.printStackTrace ();
- }
-
- Assert.assertEquals ("Test succeeded.", response.get (Directive.INFO.toString ()));
- }
+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();
+
+ Map<?, ?> response = null;
+
+ try {
+ response = client.get("/server/ServerRequestHandler?function=test");
+ } catch (DecodeFailureException e) {
+ e.printStackTrace();
+ }
+
+ Assert.assertEquals("Test succeeded.",
+ response.get(Directive.INFO.toString()));
+ }
}