ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r924683 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/email/MessageTest.java
Date Thu, 18 Mar 2010 10:19:52 GMT
Author: bodewig
Date: Thu Mar 18 10:19:51 2010
New Revision: 924683

URL: http://svn.apache.org/viewvc?rev=924683&view=rev
Log:
remove tabs

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/email/MessageTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/email/MessageTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/email/MessageTest.java?rev=924683&r1=924682&r2=924683&view=diff
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/email/MessageTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/email/MessageTest.java Thu
Mar 18 10:19:51 2010
@@ -29,34 +29,34 @@ import org.apache.tools.ant.Project;
 import org.apache.tools.ant.util.FileUtils;
 
 public class MessageTest extends TestCase {
-	private File f = new File(System.getProperty("java.io.tmpdir"),
-			"message.txt");
+    private File f = new File(System.getProperty("java.io.tmpdir"),
+                              "message.txt");
     /**
      * test for bugzilla 48932
      */
-	public void testPrintStreamDoesNotGetClosed() {
-		Message ms = new Message();
-		Project p = new Project();
-		ms.setProject(p);
-		ms.addText("hi, this is an email");
-		FileOutputStream fis = null;
-		try {
-			fis = new FileOutputStream(f);
-			ms.print(new PrintStream(fis));
-			fis.write(120);
-		} catch (IOException ioe) {
-			fail("we should not have issues writing after having called Message.print");
-		} finally {
-			FileUtils.close(fis);
-		}
+    public void testPrintStreamDoesNotGetClosed() {
+        Message ms = new Message();
+        Project p = new Project();
+        ms.setProject(p);
+        ms.addText("hi, this is an email");
+        FileOutputStream fis = null;
+        try {
+            fis = new FileOutputStream(f);
+            ms.print(new PrintStream(fis));
+            fis.write(120);
+        } catch (IOException ioe) {
+            fail("we should not have issues writing after having called Message.print");
+        } finally {
+            FileUtils.close(fis);
+        }
 
-	}
+    }
 
-	public void tearDown() {
-		if (f.exists()) {
-			FileUtils fu = FileUtils.getFileUtils();
-			fu.tryHardToDelete(f);
-		}
-	}
+    public void tearDown() {
+        if (f.exists()) {
+            FileUtils fu = FileUtils.getFileUtils();
+            fu.tryHardToDelete(f);
+        }
+    }
 
 }



Mime
View raw message