james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ieu...@apache.org
Subject svn commit: r1457431 - in /james/mime4j/trunk: benchmark/pom.xml core/pom.xml core/src/test/java/org/apache/james/mime4j/codec/CodecUtilTest.java examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java pom.xml
Date Sun, 17 Mar 2013 12:12:04 GMT
Author: ieugen
Date: Sun Mar 17 12:12:04 2013
New Revision: 1457431

URL: http://svn.apache.org/r1457431
Log:
Updated commons-io to 2.4 fixed some tests

Modified:
    james/mime4j/trunk/benchmark/pom.xml
    james/mime4j/trunk/core/pom.xml
    james/mime4j/trunk/core/src/test/java/org/apache/james/mime4j/codec/CodecUtilTest.java
    james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
    james/mime4j/trunk/pom.xml

Modified: james/mime4j/trunk/benchmark/pom.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/benchmark/pom.xml?rev=1457431&r1=1457430&r2=1457431&view=diff
==============================================================================
--- james/mime4j/trunk/benchmark/pom.xml (original)
+++ james/mime4j/trunk/benchmark/pom.xml Sun Mar 17 12:12:04 2013
@@ -31,7 +31,7 @@
     <artifactId>apache-mime4j-benchmark</artifactId>
     <packaging>bundle</packaging>
 
-    <name>Apache JAMES Mime4j (Benchmarks)</name>
+    <name>Apache James :: Mime4j :: Benchmarks</name>
     <description>Benchmarks for MIME4J stream based MIME message parser</description>
 
     <dependencies>

Modified: james/mime4j/trunk/core/pom.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/pom.xml?rev=1457431&r1=1457430&r2=1457431&view=diff
==============================================================================
--- james/mime4j/trunk/core/pom.xml (original)
+++ james/mime4j/trunk/core/pom.xml Sun Mar 17 12:12:04 2013
@@ -41,7 +41,7 @@
         <dependency>
             <groupId>commons-io</groupId>
             <artifactId>commons-io</artifactId>
-            <optional>true</optional>
+            <scope>test</scope>
         </dependency>
     </dependencies>
 

Modified: james/mime4j/trunk/core/src/test/java/org/apache/james/mime4j/codec/CodecUtilTest.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/core/src/test/java/org/apache/james/mime4j/codec/CodecUtilTest.java?rev=1457431&r1=1457430&r2=1457431&view=diff
==============================================================================
--- james/mime4j/trunk/core/src/test/java/org/apache/james/mime4j/codec/CodecUtilTest.java
(original)
+++ james/mime4j/trunk/core/src/test/java/org/apache/james/mime4j/codec/CodecUtilTest.java
Sun Mar 17 12:12:04 2013
@@ -21,7 +21,7 @@ package org.apache.james.mime4j.codec;
 
 import org.apache.james.mime4j.ExampleMail;
 import org.junit.Assert;
-import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertArrayEquals;
 import org.junit.Test;
 
 import java.io.ByteArrayInputStream;
@@ -37,7 +37,7 @@ public class CodecUtilTest {
         ByteArrayInputStream in = new ByteArrayInputStream(content);
         ByteArrayOutputStream out = new ByteArrayOutputStream();
         CodecUtil.copy(in, out);
-        assertEquals(content, out.toByteArray());
+        assertArrayEquals(content, out.toByteArray());
     }
 
     @Test

Modified: james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java?rev=1457431&r1=1457430&r2=1457431&view=diff
==============================================================================
--- james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
(original)
+++ james/mime4j/trunk/examples/src/main/java/org/apache/james/mime4j/samples/tree/MessageTree.java
Sun Mar 17 12:12:04 2013
@@ -312,9 +312,8 @@ public class MessageTree extends JPanel 
                 AddressListField field = (AddressListField) o;
                 MailboxList list = field.getAddressList().flatten();
                 StringBuilder sb = new StringBuilder();
-                for (Object aList : list) {
-                    Mailbox mb = aList;
-                    sb.append(AddressFormatter.DEFAULT.format(mb, false)).append("\n");
+                for (Mailbox mailbox : list) {
+                    sb.append(AddressFormatter.DEFAULT.format(mailbox, false)).append("\n");
                 }
                 textView.setText(sb.toString());
 

Modified: james/mime4j/trunk/pom.xml
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/pom.xml?rev=1457431&r1=1457430&r2=1457431&view=diff
==============================================================================
--- james/mime4j/trunk/pom.xml (original)
+++ james/mime4j/trunk/pom.xml Sun Mar 17 12:12:04 2013
@@ -68,7 +68,7 @@
         <commons-logging.version>1.1.1</commons-logging.version>
         <log4j.version>1.2.14</log4j.version>
         <junit.version>4.10</junit.version>
-        <commons-io.version>1.4</commons-io.version>
+        <commons-io.version>2.4</commons-io.version>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 
@@ -125,7 +125,6 @@
                 <groupId>commons-io</groupId>
                 <artifactId>commons-io</artifactId>
                 <version>${commons-io.version}</version>
-                <scope>test</scope>
             </dependency>
         </dependencies>
     </dependencyManagement>



Mime
View raw message