james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ieu...@apache.org
Subject svn commit: r1415429 [3/3] - in /james/mailet: ai/trunk/classic/src/main/java/org/apache/james/ai/classic/ ai/trunk/src/site/xdoc/ base/trunk/ base/trunk/src/assemble/ base/trunk/src/main/java/org/apache/mailet/base/ base/trunk/src/main/java/org/apache...
Date Thu, 29 Nov 2012 22:53:11 GMT
Modified: james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/AddFooterTest.java
URL: http://svn.apache.org/viewvc/james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/AddFooterTest.java?rev=1415429&r1=1415428&r2=1415429&view=diff
==============================================================================
--- james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/AddFooterTest.java
(original)
+++ james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/AddFooterTest.java
Thu Nov 29 22:52:55 2012
@@ -73,7 +73,7 @@ public class AddFooterTest extends TestC
     public String debugString(String a, String charset)
             throws UnsupportedEncodingException {
         byte[] bytes = a.getBytes(charset);
-        StringBuffer res = new StringBuffer();
+        StringBuilder res = new StringBuilder();
         for (int i = 0; i < bytes.length; i++) {
             if (i > 0)
                 res.append("-");
@@ -238,7 +238,7 @@ public class AddFooterTest extends TestC
         String c2pre = "<html><body>test =80 ss";
         String c2post = "</body></html>";
 
-        StringBuffer asciisource = new StringBuffer();
+        StringBuilder asciisource = new StringBuilder();
         asciisource.append(head);
         asciisource.append("\r\n--");
         asciisource.append(sep);
@@ -258,7 +258,7 @@ public class AddFooterTest extends TestC
         String cp1252qpfooter = "------ my footer =E0/=80 ------";
         String footer = "------ my footer \u00E0/\u20AC ------";
 
-        StringBuffer expected = new StringBuffer();
+        StringBuilder expected = new StringBuilder();
         expected.append(head);
         expected.append("\r\n--");
         expected.append(sep);

Modified: james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/NullTest.java
URL: http://svn.apache.org/viewvc/james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/NullTest.java?rev=1415429&r1=1415428&r2=1415429&view=diff
==============================================================================
--- james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/NullTest.java
(original)
+++ james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/NullTest.java
Thu Nov 29 22:52:55 2012
@@ -51,9 +51,8 @@ public class NullTest extends TestCase {
     private void setupMockedMail(MimeMessage m) throws ParseException {
         mockedMail = new FakeMail();
         mockedMail.setMessage(m);
-        mockedMail.setRecipients(Arrays.asList(new MailAddress[] {
-                new MailAddress("test@james.apache.org"),
-                new MailAddress("test2@james.apache.org") }));
+        mockedMail.setRecipients(Arrays.asList(new MailAddress("test@james.apache.org"),
+                new MailAddress("test2@james.apache.org")));
 
     }
 

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=1415429&r1=1415428&r2=1415429&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
Thu Nov 29 22:52:55 2012
@@ -105,7 +105,7 @@ public class StripAttachmentTest extends
     public String toString(final InputStream is) throws IOException {
         final ByteArrayOutputStream sw = new ByteArrayOutputStream();
         final byte[] buffer = new byte[1024];
-        int n = 0;
+        int n;
         while (-1 != (n = is.read(buffer))) {
             System.err.println(new String(buffer,0,n));
             sw.write(buffer, 0, n);

Modified: james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/ToProcessorTest.java
URL: http://svn.apache.org/viewvc/james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/ToProcessorTest.java?rev=1415429&r1=1415428&r2=1415429&view=diff
==============================================================================
--- james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/ToProcessorTest.java
(original)
+++ james/mailet/standard/trunk/src/test/java/org/apache/james/transport/mailets/ToProcessorTest.java
Thu Nov 29 22:52:55 2012
@@ -63,9 +63,8 @@ public class ToProcessorTest extends Tes
     private void setupMockedMail(MimeMessage m) throws ParseException {
         mockedMail = new FakeMail();
         mockedMail.setMessage(m);
-        mockedMail.setRecipients(Arrays.asList(new MailAddress[] {
-                new MailAddress("test@james.apache.org"),
-                new MailAddress("test2@james.apache.org") }));
+        mockedMail.setRecipients(Arrays.asList(new MailAddress("test@james.apache.org"),
+                new MailAddress("test2@james.apache.org")));
 
     }
 

Modified: james/mailet/standard/trunk/src/test/java/org/apache/james/transport/matchers/AbstractHasMailAttributeTest.java
URL: http://svn.apache.org/viewvc/james/mailet/standard/trunk/src/test/java/org/apache/james/transport/matchers/AbstractHasMailAttributeTest.java?rev=1415429&r1=1415428&r2=1415429&view=diff
==============================================================================
--- james/mailet/standard/trunk/src/test/java/org/apache/james/transport/matchers/AbstractHasMailAttributeTest.java
(original)
+++ james/mailet/standard/trunk/src/test/java/org/apache/james/transport/matchers/AbstractHasMailAttributeTest.java
Thu Nov 29 22:52:55 2012
@@ -67,7 +67,7 @@ public abstract class AbstractHasMailAtt
     protected void setupMockedMail(MimeMessage m) throws ParseException {
         mockedMail = MailUtil.createMockMail2Recipients(m);
         mockedMail.setAttribute(mailAttributeName,
-                (Serializable) mailAttributeValue);
+                mailAttributeValue);
     }
 
     protected void setupMatcher() throws MessagingException {

Modified: james/mailet/standard/trunk/src/test/java/org/apache/james/transport/matchers/SizeGreaterThanTest.java
URL: http://svn.apache.org/viewvc/james/mailet/standard/trunk/src/test/java/org/apache/james/transport/matchers/SizeGreaterThanTest.java?rev=1415429&r1=1415428&r2=1415429&view=diff
==============================================================================
--- james/mailet/standard/trunk/src/test/java/org/apache/james/transport/matchers/SizeGreaterThanTest.java
(original)
+++ james/mailet/standard/trunk/src/test/java/org/apache/james/transport/matchers/SizeGreaterThanTest.java
Thu Nov 29 22:52:55 2012
@@ -49,7 +49,7 @@ public class SizeGreaterThanTest extends
     private void setupMockedMail(long size) throws ParseException {
         mockedMail = new FakeMail();
         mockedMail.setMessageSize(size);
-        mockedMail.setRecipients(Arrays.asList(new MailAddress[] {new MailAddress("test@email")}));
+        mockedMail.setRecipients(Arrays.asList(new MailAddress("test@email")));
 
     }
 



---------------------------------------------------------------------
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