You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by ba...@apache.org on 2008/09/27 16:28:32 UTC

svn commit: r699653 - /james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/StripAttachmentTest.java

Author: bago
Date: Sat Sep 27 07:28:32 2008
New Revision: 699653

URL: http://svn.apache.org/viewvc?rev=699653&view=rev
Log:
Remove use of IOUtils from plexus (added by mistake) for StripAttachmentTest

Modified:
    james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/StripAttachmentTest.java

Modified: james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/StripAttachmentTest.java
URL: http://svn.apache.org/viewvc/james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/StripAttachmentTest.java?rev=699653&r1=699652&r2=699653&view=diff
==============================================================================
--- james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/StripAttachmentTest.java (original)
+++ james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/StripAttachmentTest.java Sat Sep 27 07:28:32 2008
@@ -1,3 +1,22 @@
+/****************************************************************
+ * 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.james.transport.mailets;
 
 import org.apache.james.test.mock.mailet.MockMail;
@@ -5,7 +24,6 @@
 import org.apache.james.test.mock.mailet.MockMailetConfig;
 import org.apache.mailet.Mail;
 import org.apache.mailet.Mailet;
-import org.codehaus.plexus.util.IOUtil;
 
 import javax.mail.MessagingException;
 import javax.mail.Session;
@@ -151,7 +169,7 @@
 
         File f = new File("c:/" + name);
         InputStream is = new FileInputStream(f);
-        String savedFile = IOUtil.toString(is);
+        String savedFile = toString(is);
         is.close();
         assertEquals(body, savedFile);
 
@@ -217,7 +235,7 @@
 
         File f = new File("c:/" + name);
         InputStream is = new FileInputStream(f);
-        String savedFile = IOUtil.toString(is);
+        String savedFile = toString(is);
         is.close();
         assertEquals(body, savedFile);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org