commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject svn commit: r1507613 - /commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java
Date Sat, 27 Jul 2013 09:26:42 GMT
Author: britter
Date: Sat Jul 27 09:26:41 2013
New Revision: 1507613

URL: http://svn.apache.org/r1507613
Log:
Remove redundant initialization

Modified:
    commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java

Modified: commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java?rev=1507613&r1=1507612&r2=1507613&view=diff
==============================================================================
--- commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java (original)
+++ commons/proper/email/trunk/src/test/java/org/apache/commons/mail/EmailTest.java Sat Jul
27 09:26:41 2013
@@ -186,14 +186,10 @@ public class EmailTest extends AbstractE
     @Test
     public void testSetContentObject()
     {
-        // setup
-        String testObject = "test string object";
-        String testContentType = "";
-
         // ====================================================================
         // test (string object and valid content type)
-        testObject = "test string object";
-        testContentType = " ; charset=" + EmailConstants.US_ASCII;
+        String testObject = "test string object";
+        String testContentType = " ; charset=" + EmailConstants.US_ASCII;
 
         email.setContent(testObject, testContentType);
         assertEquals(testObject, email.getContentObject());



Mime
View raw message