Author: davsclaus
Date: Tue Apr 28 09:04:53 2009
New Revision: 769305

URL: http://svn.apache.org/viewvc?rev=769305&view=rev
Log:
Added new line to unit test so it works when testing with the camel-source.zip 
in the distributions as the maven archiver will add newlines to text files at 
the end if missing.

Modified:
    
camel/trunk/camel-core/src/test/java/org/apache/camel/converter/IOConverterTest.java
    
camel/trunk/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt

Modified: 
camel/trunk/camel-core/src/test/java/org/apache/camel/converter/IOConverterTest.java
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/converter/IOConverterTest.java?rev=769305&r1=769304&r2=769305&view=diff
==============================================================================
--- 
camel/trunk/camel-core/src/test/java/org/apache/camel/converter/IOConverterTest.java
 (original)
+++ 
camel/trunk/camel-core/src/test/java/org/apache/camel/converter/IOConverterTest.java
 Tue Apr 28 09:04:53 2009
@@ -36,7 +36,9 @@
         byte[] data = IOConverter.toBytes(new FileInputStream(file));
         assertEquals("get the wrong byte size", file.length(), data.length);
         assertEquals('#', (char) data[0]);
-        assertEquals('!', (char) data[data.length - 1]);
+        assertEquals('!', (char) data[data.length - 2]);
+        // should end with a new line
+        assertEquals('\n', (char) data[data.length - 1]);
     }
 
     public void testCopy() throws Exception {

Modified: 
camel/trunk/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt
URL: 
http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt?rev=769305&r1=769304&r2=769305&view=diff
==============================================================================
--- 
camel/trunk/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt 
(original)
+++ 
camel/trunk/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt 
Tue Apr 28 09:04:53 2009
@@ -15,4 +15,4 @@
 ## limitations under the License.
 ## ---------------------------------------------------------------------------
 
-Hello World!
\ No newline at end of file
+Hello World!


Reply via email to