You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by he...@apache.org on 2004/12/10 07:48:08 UTC

svn commit: r111470 - in webservices/axis/trunk/java/dev/scratch/prototype2/src: java/org/apache/axis/engine java/org/apache/axis/impl/encoding test/org/apache/axis/misc

Author: hemapani
Date: Thu Dec  9 22:48:06 2004
New Revision: 111470

URL: http://svn.apache.org/viewcvs?view=rev&rev=111470
Log:
remove unused Base64 and add misc test
Added:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/misc/
   webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/misc/MiscTest.java
Removed:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/impl/encoding/
Modified:
   webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/AxisFault.java

Modified: webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/AxisFault.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/AxisFault.java?view=diff&rev=111470&p1=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/AxisFault.java&r1=111469&p2=webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/AxisFault.java&r2=111470
==============================================================================
--- webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/AxisFault.java	(original)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/java/org/apache/axis/engine/AxisFault.java	Thu Dec  9 22:48:06 2004
@@ -36,17 +36,6 @@
  */
 
 public class AxisFault extends java.rmi.RemoteException {
-    /**
-     * 
-     */
-    public AxisFault() {
-        super();
-        // TODO Auto-generated constructor stub
-    }
-
-    /**
-     * @param arg0
-     */
     public AxisFault(String arg0) {
         super(arg0);
         // TODO Auto-generated constructor stub

Added: webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/misc/MiscTest.java
Url: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/misc/MiscTest.java?view=auto&rev=111470
==============================================================================
--- (empty file)
+++ webservices/axis/trunk/java/dev/scratch/prototype2/src/test/org/apache/axis/misc/MiscTest.java	Thu Dec  9 22:48:06 2004
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2003,2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.axis.misc;
+
+import java.lang.reflect.InvocationTargetException;
+
+import org.apache.axis.AbstractTestCase;
+import org.apache.axis.context.SessionContext;
+import org.apache.axis.engine.AxisFault;
+import org.apache.axis.impl.context.SimpleSessionContext;
+
+/**
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public class MiscTest extends AbstractTestCase {
+
+    /**
+     * @param testName
+     */
+    public MiscTest(String testName) {
+        super(testName);
+    }
+    
+    public void testSessionContext(){
+        SessionContext sc = new SimpleSessionContext();
+        String key = "Hello";
+        Object val  = new Object();
+        sc.put(key,val);
+        assertEquals(sc.get(key),val);
+    }
+    
+    public void testAxisFault(){
+        Exception e = new InvocationTargetException(new Exception());
+        assertNotSame(AxisFault.makeFault(e),e);
+    }
+
+}