incubator-ftpserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r569714 - /incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/RetrieveTest.java
Date Sat, 25 Aug 2007 18:10:50 GMT
Author: ngn
Date: Sat Aug 25 11:10:49 2007
New Revision: 569714

URL: http://svn.apache.org/viewvc?rev=569714&view=rev
Log:
Fix test on *nix systems

Modified:
    incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/RetrieveTest.java

Modified: incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/RetrieveTest.java
URL: http://svn.apache.org/viewvc/incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/RetrieveTest.java?rev=569714&r1=569713&r2=569714&view=diff
==============================================================================
--- incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/RetrieveTest.java
(original)
+++ incubator/ftpserver/trunk/core/src/test/org/apache/ftpserver/clienttests/RetrieveTest.java
Sat Aug 25 11:10:49 2007
@@ -29,6 +29,8 @@
     private static final String TEST_FILENAME = "test.txt";
     private static final File TEST_FILE = new File(ROOT_DIR, TEST_FILENAME);
 
+    private static final String EOL = System.getProperty("line.separator"); 
+    
     private static byte[] testData = null;
     
     /* (non-Javadoc)
@@ -37,7 +39,7 @@
     protected void setUp() throws Exception {
         super.setUp();
 
-        testData = "TESTDATA\r\n".getBytes("UTF-8");
+        testData = ("TESTDATA" +EOL).getBytes("UTF-8");
         
         client.login(ADMIN_USERNAME, ADMIN_PASSWORD);
     }



Mime
View raw message