[camel] 02/03: Fixed tests

2021-01-24 Thread acosentino
This is an automated email from the ASF dual-hosted git repository.

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

commit a9fcea423e970ad94a254ad291dae7b68ecda4dd
Author: Andrea Cosentino 
AuthorDate: Mon Jan 25 06:36:47 2021 +0100

Fixed tests
---
 .../java/org/apache/camel/component/jsonb/JsonbAttributeOrderTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-jsonb/src/test/java/org/apache/camel/component/jsonb/JsonbAttributeOrderTest.java
 
b/components/camel-jsonb/src/test/java/org/apache/camel/component/jsonb/JsonbAttributeOrderTest.java
index 9c87522..225d74e 100644
--- 
a/components/camel-jsonb/src/test/java/org/apache/camel/component/jsonb/JsonbAttributeOrderTest.java
+++ 
b/components/camel-jsonb/src/test/java/org/apache/camel/component/jsonb/JsonbAttributeOrderTest.java
@@ -30,7 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 public class JsonbAttributeOrderTest extends CamelTestSupport {
 
 final String expectedJson
-= 
"{\"bg\":123.123,\"bool\":true,\"doubleNumber\":123.123,\"floatNumber\":123.0,\"intNumber\":123,\"longNumber\":123}";
+= 
"{\"bg\":\"123.123\",\"bool\":true,\"doubleNumber\":123.123,\"floatNumber\":123.0,\"intNumber\":123,\"longNumber\":123}";
 
 @Test
 public void testMarshalAndUnmarshalMap() throws Exception {



[camel] 02/03: Fixed tests

2020-03-04 Thread davsclaus
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 26168a3b91b36f954dda4490f69de5fe89b9459c
Author: Claus Ibsen 
AuthorDate: Thu Mar 5 07:43:55 2020 +0100

Fixed tests
---
 .../java/org/apache/camel/component/jt400/Jt400EndpointTest.java  | 4 
 .../org/apache/camel/component/jt400/Jt400PgmEndpointTest.java| 5 -
 .../org/apache/camel/component/jt400/Jt400SrvPgmEndpointTest.java | 8 
 3 files changed, 17 deletions(-)

diff --git 
a/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400EndpointTest.java
 
b/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400EndpointTest.java
index 8b83c07..e41b6dc4 100644
--- 
a/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400EndpointTest.java
+++ 
b/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400EndpointTest.java
@@ -45,8 +45,4 @@ public class Jt400EndpointTest extends Jt400TestSupport {
 assertTrue(endpoint.getSystem().isGuiAvailable());
 }
 
-@Test
-public void testToString() {
-
assertEquals("jt400://user:xx@host/qsys.lib/library.lib/queue.dtaq?ccsid=500=%23mockPool=binary=true",
 endpoint.toString());
-}
 }
diff --git 
a/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400PgmEndpointTest.java
 
b/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400PgmEndpointTest.java
index 11de5c2..3e18071 100644
--- 
a/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400PgmEndpointTest.java
+++ 
b/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400PgmEndpointTest.java
@@ -58,9 +58,4 @@ public class Jt400PgmEndpointTest extends Jt400TestSupport {
 assertEquals(true, endpoint.isFieldIdxForOuput(2));
 }
 
-@Test
-public void testToString() {
-
assertEquals("jt400://USER:xx@host/qsys.lib/library.lib/prog.pgm?connectionPool=%23mockPool=10%2C512%2C255=binary=true=1%2C2",
- endpoint.toString());
-}
 }
diff --git 
a/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400SrvPgmEndpointTest.java
 
b/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400SrvPgmEndpointTest.java
index 4b467b1..fb0f143 100644
--- 
a/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400SrvPgmEndpointTest.java
+++ 
b/components/camel-jt400/src/test/java/org/apache/camel/component/jt400/Jt400SrvPgmEndpointTest.java
@@ -61,12 +61,4 @@ public class Jt400SrvPgmEndpointTest extends 
Jt400TestSupport {
 assertEquals(true, endpoint.isFieldIdxForOuput(2));
 }
 
-@Test
-public void testToString() {
-assertEquals(
-
"jt400://USER:xx@host/qsys.lib/library.lib/prog.srvpgm?connectionPool=%23mockPool&"
-+ 
"fieldsLength=10%2C512%2C255=binary=true"
-+ "=1%2C2=someProcedure",
-endpoint.toString());
-}
 }



[camel] 02/03: Fixed tests

2018-03-06 Thread davsclaus
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 f1f0c69a83eafbd88f24526cc550869caa9cf9a8
Author: Claus Ibsen 
AuthorDate: Tue Mar 6 13:13:17 2018 +0100

Fixed tests
---
 .../component/fhir/FhirJsonDataFormatSpringTest.java  | 13 ++---
 .../camel/component/fhir/FhirJsonDataFormatTest.java  | 15 ++-
 .../camel/component/fhir/FhirXmlDataFormatSpringTest.java | 13 ++---
 .../camel/component/fhir/FhirXmlDataFormatTest.java   | 15 ++-
 .../camel/component/fhir/Hl7v2PatientToFhirPatientIT.java |  8 +---
 5 files changed, 45 insertions(+), 19 deletions(-)

diff --git 
a/components/camel-fhir/src/test/java/org/apache/camel/component/fhir/FhirJsonDataFormatSpringTest.java
 
b/components/camel-fhir/src/test/java/org/apache/camel/component/fhir/FhirJsonDataFormatSpringTest.java
index 87575fe..e2a43f9 100644
--- 
a/components/camel-fhir/src/test/java/org/apache/camel/component/fhir/FhirJsonDataFormatSpringTest.java
+++ 
b/components/camel-fhir/src/test/java/org/apache/camel/component/fhir/FhirJsonDataFormatSpringTest.java
@@ -49,8 +49,12 @@ public class FhirJsonDataFormatSpringTest extends 
CamelSpringTestSupport {
 
 @Test
 public void unmarshal() throws Exception {
-template.sendBody("direct:unmarshal", PATIENT);
 mockEndpoint.expectedMessageCount(1);
+
+template.sendBody("direct:unmarshal", PATIENT);
+
+mockEndpoint.assertIsSatisfied();
+
 Exchange exchange = mockEndpoint.getExchanges().get(0);
 Patient patient = (Patient) exchange.getIn().getBody();
 assertTrue("Patients should be equal!", 
patient.equalsDeep(getPatient()));
@@ -58,10 +62,13 @@ public class FhirJsonDataFormatSpringTest extends 
CamelSpringTestSupport {
 
 @Test
 public void marshal() throws Exception {
-Patient patient = getPatient();
 mockEndpoint.expectedMessageCount(1);
+
+Patient patient = getPatient();
 template.sendBody("direct:marshal", patient);
-mockEndpoint.expectedMessageCount(1);
+
+mockEndpoint.assertIsSatisfied();
+
 Exchange exchange = mockEndpoint.getExchanges().get(0);
 InputStream inputStream = exchange.getIn().getBody(InputStream.class);
 IBaseResource iBaseResource = 
FhirContext.forDstu3().newJsonParser().parseResource(new 
InputStreamReader(inputStream));
diff --git 
a/components/camel-fhir/src/test/java/org/apache/camel/component/fhir/FhirJsonDataFormatTest.java
 
b/components/camel-fhir/src/test/java/org/apache/camel/component/fhir/FhirJsonDataFormatTest.java
index 4bb538c..e2ca74d 100644
--- 
a/components/camel-fhir/src/test/java/org/apache/camel/component/fhir/FhirJsonDataFormatTest.java
+++ 
b/components/camel-fhir/src/test/java/org/apache/camel/component/fhir/FhirJsonDataFormatTest.java
@@ -48,8 +48,12 @@ public class FhirJsonDataFormatTest extends CamelTestSupport 
{
 
 @Test
 public void unmarshal() throws Exception {
-template.sendBody("direct:unmarshal", PATIENT);
 mockEndpoint.expectedMessageCount(1);
+
+template.sendBody("direct:unmarshal", PATIENT);
+
+mockEndpoint.assertIsSatisfied();
+
 Exchange exchange = mockEndpoint.getExchanges().get(0);
 Patient patient = (Patient) exchange.getIn().getBody();
 assertTrue("Patients should be equal!", 
patient.equalsDeep(getPatient()));
@@ -57,10 +61,13 @@ public class FhirJsonDataFormatTest extends 
CamelTestSupport {
 
 @Test
 public void marshal() throws Exception {
-Patient patient = getPatient();
 mockEndpoint.expectedMessageCount(1);
+
+Patient patient = getPatient();
 template.sendBody("direct:marshal", patient);
-mockEndpoint.expectedMessageCount(1);
+
+mockEndpoint.assertIsSatisfied();
+
 Exchange exchange = mockEndpoint.getExchanges().get(0);
 InputStream inputStream = exchange.getIn().getBody(InputStream.class);
 IBaseResource iBaseResource = 
FhirContext.forDstu3().newJsonParser().parseResource(new 
InputStreamReader(inputStream));
@@ -76,7 +83,6 @@ public class FhirJsonDataFormatTest extends CamelTestSupport {
 protected RouteBuilder createRouteBuilder() {
 return new RouteBuilder() {
 public void configure() {
-
 from("direct:marshal")
 .marshal().fhirJson("DSTU3")
 .to("mock:result");
@@ -84,7 +90,6 @@ public class FhirJsonDataFormatTest extends CamelTestSupport {
 from("direct:unmarshal")
 .unmarshal().fhirJson()
 .to("mock:result");
-
 }
 };
 }
diff --git 
a/components/camel-fhir/src/test/java/org/apache/camel/component/fhir/FhirXmlDataFormatSpringTest.java