You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Antoine Levy Lambert <an...@gmx.de> on 2010/03/18 14:12:06 UTC
Re: svn commit: r924683 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/taskdefs/email/MessageTest.java
Thanks Stefan, I will have to configure my IDE to remove the tabs.
Regards,
Antoine
bodewig@apache.org wrote:
> 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);
> + }
> + }
>
> }
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org