You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by js...@apache.org on 2007/08/13 13:19:07 UTC

svn commit: r565309 - in /activemq/camel/trunk/camel-core/src/test: java/org/apache/camel/converter/ConverterTest.java resources/org/apache/camel/converter/dummy.txt

Author: jstrachan
Date: Mon Aug 13 04:19:06 2007
New Revision: 565309

URL: http://svn.apache.org/viewvc?view=rev&rev=565309
Log:
fixed the last remaining RAT warning which showed up in 1.1.0 RC1

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

Modified: activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/converter/ConverterTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/converter/ConverterTest.java?view=diff&rev=565309&r1=565308&r2=565309
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/converter/ConverterTest.java (original)
+++ activemq/camel/trunk/camel-core/src/test/java/org/apache/camel/converter/ConverterTest.java Mon Aug 13 04:19:06 2007
@@ -146,7 +146,9 @@
         assertNotNull("Cannot find resource!");
         File file = new File(resource.getFile());
         String text = converter.convertTo(String.class, file);
-        assertEquals("file content", "Hello World!", text);
+        assertNotNull("Should have returned a String!", text);
+        text = text.trim();
+        assertTrue("Text not read correctly: " + text, text.endsWith("Hello World!"));
     }
 
     public void testPrimitiveBooleanConversion() throws Exception {

Modified: activemq/camel/trunk/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt?view=diff&rev=565309&r1=565308&r2=565309
==============================================================================
--- activemq/camel/trunk/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt (original)
+++ activemq/camel/trunk/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt Mon Aug 13 04:19:06 2007
@@ -1 +1,18 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
 Hello World!