james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r937696 - in /james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim: FileBasedTest.java PerlDKIMTest.java
Date Sat, 24 Apr 2010 20:58:34 GMT
Author: bago
Date: Sat Apr 24 20:58:34 2010
New Revision: 937696

URL: http://svn.apache.org/viewvc?rev=937696&view=rev
Log:
Remove unused mime4j code  from tests

Modified:
    james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/FileBasedTest.java
    james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/PerlDKIMTest.java

Modified: james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/FileBasedTest.java
URL: http://svn.apache.org/viewvc/james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/FileBasedTest.java?rev=937696&r1=937695&r2=937696&view=diff
==============================================================================
--- james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/FileBasedTest.java (original)
+++ james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/FileBasedTest.java Sat Apr
24 20:58:34 2010
@@ -20,7 +20,6 @@
 package org.apache.james.jdkim;
 
 import org.apache.james.jdkim.exceptions.PermFailException;
-import org.apache.james.mime4j.parser.MimeTokenStream;
 
 import java.io.File;
 import java.io.FileInputStream;
@@ -49,9 +48,6 @@ public class FileBasedTest extends TestC
     }
 
     protected void runTest() throws Throwable {
-        MimeTokenStream stream = new MimeTokenStream();
-        stream.setRecursionMode(MimeTokenStream.M_FLAT);
-
         InputStream is = new FileInputStream(file);
         // String msgoutFile = file.getAbsolutePath().substring(0,
         // file.getAbsolutePath().lastIndexOf('.')) + ".out";

Modified: james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/PerlDKIMTest.java
URL: http://svn.apache.org/viewvc/james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/PerlDKIMTest.java?rev=937696&r1=937695&r2=937696&view=diff
==============================================================================
--- james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/PerlDKIMTest.java (original)
+++ james/jdkim/trunk/main/src/test/java/org/apache/james/jdkim/PerlDKIMTest.java Sat Apr
24 20:58:34 2010
@@ -31,7 +31,6 @@ import junit.framework.TestCase;
 import junit.framework.TestSuite;
 
 import org.apache.james.jdkim.exceptions.FailException;
-import org.apache.james.mime4j.parser.MimeTokenStream;
 
 /**
  * Creates a TestSuite running the test for each .msg file in the test resouce
@@ -85,9 +84,6 @@ public class PerlDKIMTest extends TestCa
     }
 
     protected void runTest() throws Throwable {
-        MimeTokenStream stream = new MimeTokenStream();
-        stream.setRecursionMode(MimeTokenStream.M_FLAT);
-
         InputStream is = new FileInputStream(file);
 
         pkr = getPublicRecordRetriever();



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


Mime
View raw message