Author: veithen
Date: Thu May 21 21:19:44 2009
New Revision: 777262

URL: http://svn.apache.org/viewvc?rev=777262&view=rev
Log:
Moved the unit tests for CommonUtils.isTextualPart to the right location.

Added:
    
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/util/CommonUtilsTest.java
   (with props)
Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java

Added: 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/util/CommonUtilsTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/util/CommonUtilsTest.java?rev=777262&view=auto
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/util/CommonUtilsTest.java
 (added)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/util/CommonUtilsTest.java
 Thu May 21 21:19:44 2009
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.axiom.om.util;
+
+import junit.framework.TestCase;
+
+public class CommonUtilsTest extends TestCase {
+    public void testIsTextualPart() {
+        assertTrue(CommonUtils.isTextualPart("text/xml"));
+        assertTrue(CommonUtils.isTextualPart("application/xml"));
+        assertTrue(CommonUtils.isTextualPart("application/soap+xml"));
+        assertTrue(CommonUtils.isTextualPart("foo/bar; charset=UTF-8"));
+        assertTrue(!CommonUtils.isTextualPart("image/gif"));
+    }
+}

Propchange: 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/test/java/org/apache/axiom/om/util/CommonUtilsTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java?rev=777262&r1=777261&r2=777262&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
 Thu May 21 21:19:44 2009
@@ -25,7 +25,6 @@
 import org.apache.axiom.om.OMOutputFormat;
 import org.apache.axiom.om.impl.MTOMXMLStreamWriter;
 import org.apache.axiom.om.impl.builder.XOPAwareStAXOMBuilder;
-import org.apache.axiom.om.util.CommonUtils;
 
 import javax.activation.DataHandler;
 
@@ -247,14 +246,6 @@
         // writing base64 compliant code.
         assertTrue(outBase64ToBase64.indexOf("base64") != -1);
         assertTrue(outBase64ToBase64.indexOf("GBgcGBQgHBwcJCQgKDBQNDAsL") != 
-1);
-        
-        // Some quick verifications of the isTextualPart logic
-        assertTrue(CommonUtils.isTextualPart("text/xml"));
-        assertTrue(CommonUtils.isTextualPart("application/xml"));
-        assertTrue(CommonUtils.isTextualPart("application/soap+xml"));
-        assertTrue(CommonUtils.isTextualPart("foo/bar; charset=UTF-8"));
-        assertTrue(!CommonUtils.isTextualPart("image/gif"));
-        
     }
     
 


Reply via email to