You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/11/06 10:58:41 UTC

[camel] 07/12: Improve tests

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 7d831032483f268429c3921e68ed47596c43b47a
Author: Carl-Philipp Harmant <cp...@gmail.com>
AuthorDate: Wed Nov 1 17:26:03 2017 -0500

    Improve tests
---
 .../java/org/apache/camel/component/yql/YqlComponentTest.java | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/components/camel-yql/src/test/java/org/apache/camel/component/yql/YqlComponentTest.java b/components/camel-yql/src/test/java/org/apache/camel/component/yql/YqlComponentTest.java
index dfa03e6..fe63ec2 100644
--- a/components/camel-yql/src/test/java/org/apache/camel/component/yql/YqlComponentTest.java
+++ b/components/camel-yql/src/test/java/org/apache/camel/component/yql/YqlComponentTest.java
@@ -60,7 +60,7 @@ public class YqlComponentTest extends CamelTestSupport {
     @Test
     public void testConfigurationSetup() {
         // given
-        final YqlEndpoint yqlEndpoint = (YqlEndpoint) context.getEndpoint("yql://query?format=xml&callback=yqlCallback&diagnostics=true");
+        final YqlEndpoint yqlEndpoint = (YqlEndpoint) context.getEndpoint("yql://query?format=xml&callback=yqlCallback&diagnostics=true&debug=true&https=false&throwExceptionOnFailure=false&jsonCompat=new");
 
         // when
         final YqlConfiguration yqlConfiguration = yqlEndpoint.getConfiguration();
@@ -70,7 +70,10 @@ public class YqlComponentTest extends CamelTestSupport {
         assertEquals("query", yqlConfiguration.getQuery());
         assertEquals("xml", yqlConfiguration.getFormat());
         assertEquals("yqlCallback", yqlConfiguration.getCallback());
+        assertTrue(yqlConfiguration.isDebug());
         assertTrue(yqlConfiguration.isDiagnostics());
+        assertFalse(yqlConfiguration.isHttps());
+        assertFalse(yqlConfiguration.isThrowExceptionOnFailure());
     }
 
     @Test
@@ -86,7 +89,13 @@ public class YqlComponentTest extends CamelTestSupport {
         assertEquals("query", yqlConfiguration.getQuery());
         assertEquals("json", yqlConfiguration.getFormat());
         assertThat(yqlConfiguration.getCallback(), is(emptyString()));
+        assertNull(yqlConfiguration.getCrossProduct());
         assertFalse(yqlConfiguration.isDiagnostics());
+        assertFalse(yqlConfiguration.isDebug());
+        assertNull(yqlConfiguration.getEnv());
+        assertNull(yqlConfiguration.getJsonCompat());
+        assertTrue(yqlConfiguration.isThrowExceptionOnFailure());
+        assertTrue(yqlConfiguration.isHttps());
     }
 
     @Test

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <co...@camel.apache.org>.