Author: mladen.turk(a)jboss.com
Date: 2008-05-29 02:51:33 -0400 (Thu, 29 May 2008)
New Revision: 1634
Added:
sandbox/aloha/test/org/jboss/aloha/TestMessage.java
Modified:
sandbox/aloha/test/org/jboss/aloha/TestAll.java
Log:
Add TestMessage
Modified: sandbox/aloha/test/org/jboss/aloha/TestAll.java
===================================================================
--- sandbox/aloha/test/org/jboss/aloha/TestAll.java 2008-05-29 06:50:34 UTC (rev 1633)
+++ sandbox/aloha/test/org/jboss/aloha/TestAll.java 2008-05-29 06:51:33 UTC (rev 1634)
@@ -42,6 +42,7 @@
// Fundamentals
suite.addTest(TestParameter.suite());
suite.addTest(TestResponseBodyParser.suite());
+ suite.addTest(TestMessage.suite());
return suite;
}
Added: sandbox/aloha/test/org/jboss/aloha/TestMessage.java
===================================================================
--- sandbox/aloha/test/org/jboss/aloha/TestMessage.java (rev 0)
+++ sandbox/aloha/test/org/jboss/aloha/TestMessage.java 2008-05-29 06:51:33 UTC (rev
1634)
@@ -0,0 +1,53 @@
+/*
+ *
+ * Copyright(c) 2008 Red Hat Middleware, LLC,
+ * and individual contributors as indicated by the @authors tag.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library in the file COPYING.LIB;
+ * if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ *
+ */
+
+package org.jboss.aloha;
+
+import java.util.Date;
+import junit.framework.*;
+
+/**
+ * Message Test.
+ *
+ */
+public class TestMessage extends TestCase
+{
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite(TestMessage.class);
+ return suite;
+ }
+
+ public void testInit()
+ throws Exception
+ {
+ ConnectionFactory f;
+ Connection c;
+ f = new ConnectionFactory(HttpConnection.class);
+ c = f.getConnection();
+ assertEquals("Class ", c.getClass(), HttpConnection.class);
+ }
+
+
+}
Property changes on: sandbox/aloha/test/org/jboss/aloha/TestMessage.java
___________________________________________________________________
Name: svn:eol-style
+ native
Show replies by date