Repository: camel
Updated Branches:
  refs/heads/master e2d2811ce -> 485a037b4


Removed unittest on exception message


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/485a037b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/485a037b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/485a037b

Branch: refs/heads/master
Commit: 485a037b48b72f553afe745cfe10a7ead6bc0cb3
Parents: b2b0113
Author: Arno Noordover <a...@noordover.net>
Authored: Thu May 26 11:49:42 2016 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Thu May 26 13:31:10 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/converter/DurationConverterTest.java  | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/485a037b/camel-core/src/test/java/org/apache/camel/converter/DurationConverterTest.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/test/java/org/apache/camel/converter/DurationConverterTest.java
 
b/camel-core/src/test/java/org/apache/camel/converter/DurationConverterTest.java
index 668802a..ce6d810 100644
--- 
a/camel-core/src/test/java/org/apache/camel/converter/DurationConverterTest.java
+++ 
b/camel-core/src/test/java/org/apache/camel/converter/DurationConverterTest.java
@@ -27,9 +27,6 @@ import org.apache.camel.TypeConversionException;
 import static org.hamcrest.core.Is.is;
 import static org.junit.Assert.assertThat;
 
-/**
- *
- */
 public class DurationConverterTest extends ContextTestSupport {
 
     public void testToMillis() throws Exception {
@@ -46,8 +43,6 @@ public class DurationConverterTest extends ContextTestSupport 
{
             context.getTypeConverter().convertTo(long.class, duration);
         } catch (TypeConversionException e) {
             assertIsInstanceOf(ArithmeticException.class, 
e.getCause().getCause());
-            assertThat(e.getMessage(), is("Error during type conversion from 
type: java.time.Duration to the required type: " +
-                    "long with value PT1440000000000000H due 
java.lang.ArithmeticException: long overflow"));
         }
     }
 

Reply via email to