Compare commits
merge into: ganesh:master
ganesh:AdityaS9
ganesh:Dev
ganesh:Saraphin_Dev
ganesh:jaydeep
ganesh:mac
ganesh:master
ganesh:pranavE
ganesh:ptest
ganesh:salman
pull from: ganesh:pranavE
ganesh:AdityaS9
ganesh:Dev
ganesh:Saraphin_Dev
ganesh:jaydeep
ganesh:mac
ganesh:master
ganesh:pranavE
ganesh:ptest
ganesh:salman
4 Commits
| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
1ae5e7c5e4 |
Order project clean installed level 2 complete
|
4 years ago |
|
|
3aae685e94 |
camel-CXF-rest cleaned and installed successfully
|
4 years ago |
|
|
23c551670f |
jms project building successfully level 2 complete
|
4 years ago |
|
|
230d6b5c18 |
added
|
4 years ago |
120 changed files with 3123 additions and 1 deletions
Split View
Diff Options
-
33camel-cxf-rest/.classpath
-
23camel-cxf-rest/.project
-
5camel-cxf-rest/.settings/org.eclipse.core.resources.prefs
-
8camel-cxf-rest/.settings/org.eclipse.jdt.core.prefs
-
4camel-cxf-rest/.settings/org.eclipse.m2e.core.prefs
-
12camel-cxf-rest/ReadMe.md
-
92camel-cxf-rest/pom.xml
-
52camel-cxf-rest/src/main/java/camelinaction/Order.java
-
28camel-cxf-rest/src/main/java/camelinaction/OrderRoute.java
-
13camel-cxf-rest/src/main/java/camelinaction/OrderService.java
-
51camel-cxf-rest/src/main/java/camelinaction/RestOrderService.java
-
55camel-cxf-rest/src/test/java/camelinaction/DummyOrderService.java
-
84camel-cxf-rest/src/test/java/camelinaction/RestOrderServiceTest.java
-
72camel-cxf-rest/src/test/java/camelinaction/SpringRestBeanOrderServiceJSonTest.java
-
76camel-cxf-rest/src/test/java/camelinaction/SpringRestBeanOrderServiceTest.java
-
76camel-cxf-rest/src/test/java/camelinaction/SpringRestOrderServiceTest.java
-
47camel-cxf-rest/src/test/resources/camelinaction/SpringRestBeanOrderServiceTest.xml
-
53camel-cxf-rest/src/test/resources/camelinaction/SpringRestBeanOrderServiceTestJSon.xml
-
42camel-cxf-rest/src/test/resources/camelinaction/SpringRestOrderServiceTest.xml
-
7camel-cxf-rest/src/test/resources/log4j.properties
-
BINcamel-cxf-rest/target/chapter10-camel-cxf-rest-2.0.0.jar
-
BINcamel-cxf-rest/target/classes/camelinaction/Order.class
-
BINcamel-cxf-rest/target/classes/camelinaction/OrderRoute.class
-
BINcamel-cxf-rest/target/classes/camelinaction/OrderService.class
-
BINcamel-cxf-rest/target/classes/camelinaction/RestOrderService.class
-
5camel-cxf-rest/target/maven-archiver/pom.properties
-
4camel-cxf-rest/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
-
4camel-cxf-rest/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
-
5camel-cxf-rest/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
-
5camel-cxf-rest/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
-
61camel-cxf-rest/target/surefire-reports/TEST-camelinaction.RestOrderServiceTest.xml
-
61camel-cxf-rest/target/surefire-reports/TEST-camelinaction.SpringRestBeanOrderServiceJSonTest.xml
-
61camel-cxf-rest/target/surefire-reports/TEST-camelinaction.SpringRestBeanOrderServiceTest.xml
-
61camel-cxf-rest/target/surefire-reports/TEST-camelinaction.SpringRestOrderServiceTest.xml
-
4camel-cxf-rest/target/surefire-reports/camelinaction.RestOrderServiceTest.txt
-
4camel-cxf-rest/target/surefire-reports/camelinaction.SpringRestBeanOrderServiceJSonTest.txt
-
4camel-cxf-rest/target/surefire-reports/camelinaction.SpringRestBeanOrderServiceTest.txt
-
4camel-cxf-rest/target/surefire-reports/camelinaction.SpringRestOrderServiceTest.txt
-
BINcamel-cxf-rest/target/test-classes/camelinaction/DummyOrderService.class
-
BINcamel-cxf-rest/target/test-classes/camelinaction/RestOrderServiceTest.class
-
BINcamel-cxf-rest/target/test-classes/camelinaction/SpringRestBeanOrderServiceJSonTest.class
-
BINcamel-cxf-rest/target/test-classes/camelinaction/SpringRestBeanOrderServiceTest.class
-
47camel-cxf-rest/target/test-classes/camelinaction/SpringRestBeanOrderServiceTest.xml
-
53camel-cxf-rest/target/test-classes/camelinaction/SpringRestBeanOrderServiceTestJSon.xml
-
BINcamel-cxf-rest/target/test-classes/camelinaction/SpringRestOrderServiceTest.class
-
42camel-cxf-rest/target/test-classes/camelinaction/SpringRestOrderServiceTest.xml
-
7camel-cxf-rest/target/test-classes/log4j.properties
-
17jms/.project
-
2jms/.settings/org.eclipse.core.resources.prefs
-
4jms/.settings/org.eclipse.m2e.core.prefs
-
18jms/README.md
-
378jms/pom.xml
-
2jms/src/data/message1.xml
-
47jms/src/main/java/camelinaction/OrderRouter.java
-
31jms/src/main/resources/META-INF/spring/camel-context.xml
-
15jms/src/main/resources/log4j.properties
-
46jms/src/test/java/camelinaction/RequestReplyJmsTest.java
-
17jms/src/test/java/camelinaction/ValidatorBean.java
-
33order/.classpath
-
23order/.project
-
4order/.settings/org.eclipse.core.resources.prefs
-
8order/.settings/org.eclipse.jdt.core.prefs
-
4order/.settings/org.eclipse.m2e.core.prefs
-
36order/README.md
-
104order/pom.xml
-
42order/src/test/java/camelinaction/PurchaseOrder.java
-
36order/src/test/java/camelinaction/PurchaseOrderCsvSpringTest.java
-
45order/src/test/java/camelinaction/PurchaseOrderCsvTest.java
-
66order/src/test/java/camelinaction/PurchaseOrderJSONTest.java
-
31order/src/test/java/camelinaction/PurchaseOrderJaxbTest.java
-
43order/src/test/java/camelinaction/PurchaseOrderVelocityTest.java
-
43order/src/test/java/camelinaction/bindy/PurchaseOrder.java
-
64order/src/test/java/camelinaction/bindy/PurchaseOrderBindyTest.java
-
84order/src/test/java/camelinaction/bindy/PurchaseOrderUnmarshalBindyTest.java
-
1order/src/test/resources/camelinaction/jaxb.index
-
5order/src/test/resources/camelinaction/mail.vm
-
23order/src/test/resources/camelinaction/order-csv.xml
-
28order/src/test/resources/camelinaction/order-jaxb.xml
-
12order/src/test/resources/log4j.properties
-
2order/src/test/resources/order.csv
-
BINorder/target/chapter3-order-2.0.0.jar
-
5order/target/maven-archiver/pom.properties
-
15order/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst
-
9order/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
-
59order/target/surefire-reports/TEST-camelinaction.PurchaseOrderCsvSpringTest.xml
-
59order/target/surefire-reports/TEST-camelinaction.PurchaseOrderCsvTest.xml
-
59order/target/surefire-reports/TEST-camelinaction.PurchaseOrderJSONTest.xml
-
59order/target/surefire-reports/TEST-camelinaction.PurchaseOrderJaxbTest.xml
-
59order/target/surefire-reports/TEST-camelinaction.PurchaseOrderVelocityTest.xml
-
59order/target/surefire-reports/TEST-camelinaction.bindy.PurchaseOrderBindyTest.xml
-
60order/target/surefire-reports/TEST-camelinaction.bindy.PurchaseOrderUnmarshalBindyTest.xml
-
4order/target/surefire-reports/camelinaction.PurchaseOrderCsvSpringTest.txt
-
4order/target/surefire-reports/camelinaction.PurchaseOrderCsvTest.txt
-
4order/target/surefire-reports/camelinaction.PurchaseOrderJSONTest.txt
-
4order/target/surefire-reports/camelinaction.PurchaseOrderJaxbTest.txt
-
4order/target/surefire-reports/camelinaction.PurchaseOrderVelocityTest.txt
-
4order/target/surefire-reports/camelinaction.bindy.PurchaseOrderBindyTest.txt
-
4order/target/surefire-reports/camelinaction.bindy.PurchaseOrderUnmarshalBindyTest.txt
-
BINorder/target/test-classes/camelinaction/PurchaseOrder.class
-
BINorder/target/test-classes/camelinaction/PurchaseOrderCsvSpringTest.class
@ -0,0 +1,33 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<classpath> |
|||
<classpathentry kind="src" output="target/classes" path="src/main/java"> |
|||
<attributes> |
|||
<attribute name="optional" value="true"/> |
|||
<attribute name="maven.pomderived" value="true"/> |
|||
</attributes> |
|||
</classpathentry> |
|||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> |
|||
<attributes> |
|||
<attribute name="optional" value="true"/> |
|||
<attribute name="maven.pomderived" value="true"/> |
|||
<attribute name="test" value="true"/> |
|||
</attributes> |
|||
</classpathentry> |
|||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> |
|||
<attributes> |
|||
<attribute name="maven.pomderived" value="true"/> |
|||
<attribute name="test" value="true"/> |
|||
</attributes> |
|||
</classpathentry> |
|||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> |
|||
<attributes> |
|||
<attribute name="maven.pomderived" value="true"/> |
|||
</attributes> |
|||
</classpathentry> |
|||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> |
|||
<attributes> |
|||
<attribute name="maven.pomderived" value="true"/> |
|||
</attributes> |
|||
</classpathentry> |
|||
<classpathentry kind="output" path="target/classes"/> |
|||
</classpath> |
|||
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<projectDescription> |
|||
<name>chapter10-camel-cxf-rest</name> |
|||
<comment></comment> |
|||
<projects> |
|||
</projects> |
|||
<buildSpec> |
|||
<buildCommand> |
|||
<name>org.eclipse.jdt.core.javabuilder</name> |
|||
<arguments> |
|||
</arguments> |
|||
</buildCommand> |
|||
<buildCommand> |
|||
<name>org.eclipse.m2e.core.maven2Builder</name> |
|||
<arguments> |
|||
</arguments> |
|||
</buildCommand> |
|||
</buildSpec> |
|||
<natures> |
|||
<nature>org.eclipse.jdt.core.javanature</nature> |
|||
<nature>org.eclipse.m2e.core.maven2Nature</nature> |
|||
</natures> |
|||
</projectDescription> |
|||
@ -0,0 +1,5 @@ |
|||
eclipse.preferences.version=1 |
|||
encoding//src/main/java=UTF-8 |
|||
encoding//src/test/java=UTF-8 |
|||
encoding//src/test/resources=UTF-8 |
|||
encoding/<project>=UTF-8 |
|||
@ -0,0 +1,8 @@ |
|||
eclipse.preferences.version=1 |
|||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 |
|||
org.eclipse.jdt.core.compiler.compliance=1.8 |
|||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled |
|||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning |
|||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore |
|||
org.eclipse.jdt.core.compiler.release=disabled |
|||
org.eclipse.jdt.core.compiler.source=1.8 |
|||
@ -0,0 +1,4 @@ |
|||
activeProfiles= |
|||
eclipse.preferences.version=1 |
|||
resolveWorkspaceProjects=true |
|||
version=1 |
|||
@ -0,0 +1,12 @@ |
|||
Chapter 10 - camel-cxf-rest |
|||
--------------------------- |
|||
|
|||
This directory holds examples how to use the camel-cxf component for REST services |
|||
|
|||
### 10.1.5 - Using camel-cxfrs with REST services |
|||
|
|||
This example can be run using: |
|||
|
|||
mvn test -Dtest=RestOrderServiceTest |
|||
mvn test -Dtest=SpringRestOrderServiceTest |
|||
|
|||
@ -0,0 +1,92 @@ |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|||
|
|||
<modelVersion>4.0.0</modelVersion> |
|||
|
|||
<parent> |
|||
<groupId>com.camelinaction</groupId> |
|||
<artifactId>chapter10</artifactId> |
|||
<version>2.0.0</version> |
|||
<relativePath>..</relativePath> |
|||
</parent> |
|||
|
|||
<artifactId>chapter10-camel-cxf-rest</artifactId> |
|||
<name>Camel in Action 2 :: Chapter 10 :: Camel CXF-RS</name> |
|||
|
|||
<dependencies> |
|||
|
|||
<!-- camel --> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-core</artifactId> |
|||
<version>${camel-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-cxf</artifactId> |
|||
<version>${camel-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-jaxb</artifactId> |
|||
<version>${camel-version}</version> |
|||
</dependency> |
|||
|
|||
<!-- cxf http/jetty server --> |
|||
<dependency> |
|||
<groupId>org.apache.cxf</groupId> |
|||
<artifactId>cxf-rt-transports-http</artifactId> |
|||
<version>${cxf-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.cxf</groupId> |
|||
<artifactId>cxf-rt-transports-http-jetty</artifactId> |
|||
<version>${cxf-version}</version> |
|||
</dependency> |
|||
<!-- to enable json support --> |
|||
<dependency> |
|||
<groupId>org.apache.cxf</groupId> |
|||
<artifactId>cxf-rt-rs-extension-providers</artifactId> |
|||
<version>${cxf-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>com.fasterxml.jackson.jaxrs</groupId> |
|||
<artifactId>jackson-jaxrs-json-provider</artifactId> |
|||
<version>2.7.1</version> |
|||
</dependency> |
|||
|
|||
<!-- testing --> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-test-spring</artifactId> |
|||
<version>${camel-version}</version> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-restlet</artifactId> |
|||
<version>${camel-version}</version> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>junit</groupId> |
|||
<artifactId>junit</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
<!-- logging --> |
|||
<dependency> |
|||
<groupId>org.slf4j</groupId> |
|||
<artifactId>slf4j-log4j12</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>log4j</groupId> |
|||
<artifactId>log4j</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
</dependencies> |
|||
|
|||
</project> |
|||
|
|||
@ -0,0 +1,52 @@ |
|||
package camelinaction; |
|||
|
|||
import javax.xml.bind.annotation.XmlAccessType; |
|||
import javax.xml.bind.annotation.XmlAccessorType; |
|||
import javax.xml.bind.annotation.XmlAttribute; |
|||
import javax.xml.bind.annotation.XmlRootElement; |
|||
|
|||
@XmlRootElement(name = "order") |
|||
@XmlAccessorType(XmlAccessType.FIELD) |
|||
public class Order { |
|||
|
|||
@XmlAttribute |
|||
private int id; |
|||
@XmlAttribute |
|||
private String partName; |
|||
@XmlAttribute |
|||
private int amount; |
|||
@XmlAttribute |
|||
private String customerName; |
|||
|
|||
public int getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(int id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getPartName() { |
|||
return partName; |
|||
} |
|||
|
|||
public void setPartName(String partName) { |
|||
this.partName = partName; |
|||
} |
|||
|
|||
public int getAmount() { |
|||
return amount; |
|||
} |
|||
|
|||
public void setAmount(int amount) { |
|||
this.amount = amount; |
|||
} |
|||
|
|||
public String getCustomerName() { |
|||
return customerName; |
|||
} |
|||
|
|||
public void setCustomerName(String customerName) { |
|||
this.customerName = customerName; |
|||
} |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
package camelinaction; |
|||
|
|||
import org.apache.camel.builder.RouteBuilder; |
|||
|
|||
public class OrderRoute extends RouteBuilder { |
|||
|
|||
@Override |
|||
public void configure() throws Exception { |
|||
// use CXF-RS to setup the REST web service using the resource class |
|||
// and use the simple binding style which is recommended to use |
|||
from("cxfrs:http://localhost:8080?resourceClasses=camelinaction.RestOrderService&bindingStyle=SimpleConsumer") |
|||
// call the route based on the operation invoked on the REST web service |
|||
.toD("direct:${header.operationName}"); |
|||
|
|||
// routes that implement the REST services |
|||
from("direct:createOrder") |
|||
.bean("orderService", "createOrder"); |
|||
|
|||
from("direct:getOrder") |
|||
.bean("orderService", "getOrder(${header.id})"); |
|||
|
|||
from("direct:updateOrder") |
|||
.bean("orderService", "updateOrder"); |
|||
|
|||
from("direct:cancelOrder") |
|||
.bean("orderService", "cancelOrder(${header.id})"); |
|||
} |
|||
} |
|||
@ -0,0 +1,13 @@ |
|||
package camelinaction; |
|||
|
|||
public interface OrderService { |
|||
|
|||
Order getOrder(int orderId); |
|||
|
|||
void updateOrder(Order order); |
|||
|
|||
String createOrder(Order order); |
|||
|
|||
void cancelOrder(int orderId); |
|||
|
|||
} |
|||
@ -0,0 +1,51 @@ |
|||
package camelinaction; |
|||
|
|||
import javax.ws.rs.Consumes; |
|||
import javax.ws.rs.DELETE; |
|||
import javax.ws.rs.GET; |
|||
import javax.ws.rs.POST; |
|||
import javax.ws.rs.PUT; |
|||
import javax.ws.rs.Path; |
|||
import javax.ws.rs.PathParam; |
|||
import javax.ws.rs.Produces; |
|||
|
|||
/** |
|||
* A JAX-RS Resource interface where we define the RESTful web service, using the JAX-RS annotations. |
|||
* <p/> |
|||
* When using cxfrs with Camel then this resource class can be an interface, as its just a contract/facade |
|||
* to describe the REST web service. When a client calls the REST services then its a Camel route that routes |
|||
* the incoming request, see {@link OrderRoute} |
|||
* <br/> |
|||
* This REST service supports both xml and json as data format. |
|||
*/ |
|||
@Path("/orders/") |
|||
@Consumes(value = "application/xml,application/json") |
|||
@Produces(value = "application/xml,application/json") |
|||
public interface RestOrderService { |
|||
|
|||
/** |
|||
* The GET order by id operation |
|||
*/ |
|||
@GET |
|||
@Path("/{id}") |
|||
Order getOrder(@PathParam("id") int orderId); |
|||
|
|||
/** |
|||
* The PUT update order operation |
|||
*/ |
|||
@PUT |
|||
void updateOrder(Order order); |
|||
|
|||
/** |
|||
* The POST create order operation |
|||
*/ |
|||
@POST |
|||
String createOrder(Order order); |
|||
|
|||
/** |
|||
* The DELETE cancel order operation |
|||
*/ |
|||
@DELETE |
|||
@Path("/{id}") |
|||
void cancelOrder(@PathParam("id") int orderId); |
|||
} |
|||
@ -0,0 +1,55 @@ |
|||
package camelinaction; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.Map; |
|||
import java.util.concurrent.atomic.AtomicInteger; |
|||
|
|||
/** |
|||
* A dummy implementation of {@link OrderService} to use for testing and running this example. |
|||
*/ |
|||
public class DummyOrderService implements OrderService { |
|||
|
|||
// in memory dummy order system |
|||
private Map<Integer, Order> orders = new HashMap<>(); |
|||
|
|||
private final AtomicInteger idGen = new AtomicInteger(); |
|||
|
|||
@Override |
|||
public Order getOrder(int orderId) { |
|||
return orders.get(orderId); |
|||
} |
|||
|
|||
@Override |
|||
public void updateOrder(Order order) { |
|||
int id = order.getId(); |
|||
orders.remove(id); |
|||
orders.put(id, order); |
|||
} |
|||
|
|||
@Override |
|||
public String createOrder(Order order) { |
|||
int id = idGen.incrementAndGet(); |
|||
order.setId(id); |
|||
orders.put(id, order); |
|||
return "" + id; |
|||
} |
|||
|
|||
@Override |
|||
public void cancelOrder(int orderId) { |
|||
orders.remove(orderId); |
|||
} |
|||
|
|||
public void setupDummyOrders() { |
|||
Order order = new Order(); |
|||
order.setAmount(1); |
|||
order.setPartName("motor"); |
|||
order.setCustomerName("honda"); |
|||
createOrder(order); |
|||
|
|||
order = new Order(); |
|||
order.setAmount(3); |
|||
order.setPartName("brake"); |
|||
order.setCustomerName("toyota"); |
|||
createOrder(order); |
|||
} |
|||
} |
|||
@ -0,0 +1,84 @@ |
|||
package camelinaction; |
|||
|
|||
import org.apache.camel.Exchange; |
|||
import org.apache.camel.builder.RouteBuilder; |
|||
import org.apache.camel.impl.JndiRegistry; |
|||
import org.apache.camel.test.junit4.CamelTestSupport; |
|||
import org.junit.Test; |
|||
|
|||
public class RestOrderServiceTest extends CamelTestSupport { |
|||
|
|||
// use dummy service for testing purpose |
|||
private DummyOrderService orderService = new DummyOrderService(); |
|||
|
|||
@Override |
|||
protected JndiRegistry createRegistry() throws Exception { |
|||
JndiRegistry jndi = super.createRegistry(); |
|||
jndi.bind("orderService", orderService); |
|||
return jndi; |
|||
} |
|||
|
|||
@Override |
|||
protected RouteBuilder createRouteBuilder() throws Exception { |
|||
return new OrderRoute(); |
|||
} |
|||
|
|||
@Test |
|||
public void testGetOrder() throws Exception { |
|||
// setup some pre-existing orders |
|||
orderService.setupDummyOrders(); |
|||
|
|||
// use restlet component to get the order |
|||
String response = template.requestBodyAndHeader("restlet:http://localhost:8080/orders/{id}?restletMethod=GET", null, "id", "1", String.class); |
|||
log.info("Response: {}", response); |
|||
} |
|||
|
|||
@Test |
|||
public void testCreateOrder() throws Exception { |
|||
Order order = new Order(); |
|||
order.setAmount(1); |
|||
order.setPartName("motor"); |
|||
order.setCustomerName("honda"); |
|||
|
|||
// convert to XML which we support |
|||
String xml = context.getTypeConverter().convertTo(String.class, order); |
|||
|
|||
log.info("Sending order using xml payload: {}", xml); |
|||
|
|||
// use restlet component to send the order |
|||
String id = template.requestBodyAndHeader("restlet:http://localhost:8080/orders?restletMethod=POST", xml, Exchange.CONTENT_TYPE, "application/xml", String.class); |
|||
assertNotNull(id); |
|||
|
|||
log.info("Created new order with id " + id); |
|||
|
|||
// should create a new order with id 1 |
|||
assertEquals("1", id); |
|||
} |
|||
|
|||
@Test |
|||
public void testCreateAndGetOrder() throws Exception { |
|||
Order order = new Order(); |
|||
order.setAmount(1); |
|||
order.setPartName("motor"); |
|||
order.setCustomerName("honda"); |
|||
|
|||
// convert to XML which we support |
|||
String xml = context.getTypeConverter().convertTo(String.class, order); |
|||
|
|||
log.info("Sending order using xml payload: {}", xml); |
|||
|
|||
// use restlet component to send the order |
|||
String id = template.requestBodyAndHeader("restlet:http://localhost:8080/orders?restletMethod=POST", xml, Exchange.CONTENT_TYPE, "application/xml", String.class); |
|||
assertNotNull(id); |
|||
|
|||
log.info("Created new order with id " + id); |
|||
|
|||
// should create a new order with id 1 |
|||
assertEquals("1", id); |
|||
|
|||
// use restlet component to get the order |
|||
String response = template.requestBodyAndHeader("restlet:http://localhost:8080/orders/{id}?restletMethod=GET", null, "id", "1", String.class); |
|||
log.info("Response: {}", response); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,72 @@ |
|||
package camelinaction; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.Map; |
|||
|
|||
import org.apache.camel.test.spring.CamelSpringTestSupport; |
|||
import org.junit.Test; |
|||
import org.springframework.context.support.AbstractApplicationContext; |
|||
import org.springframework.context.support.ClassPathXmlApplicationContext; |
|||
|
|||
public class SpringRestBeanOrderServiceJSonTest extends CamelSpringTestSupport { |
|||
|
|||
@Override |
|||
protected AbstractApplicationContext createApplicationContext() { |
|||
return new ClassPathXmlApplicationContext("camelinaction/SpringRestBeanOrderServiceTestJSon.xml"); |
|||
} |
|||
|
|||
@Test |
|||
public void testGetOrder() throws Exception { |
|||
DummyOrderService orderService = context().getRegistry().lookupByNameAndType("orderService", DummyOrderService.class); |
|||
|
|||
// setup some pre-existing orders |
|||
orderService.setupDummyOrders(); |
|||
|
|||
// use restlet component to get the order |
|||
String response = template.requestBodyAndHeader("restlet:http://localhost:8080/orders/1?restletMethod=GET", null, "Accept", "application/json", String.class); |
|||
log.info("Response: {}", response); |
|||
} |
|||
|
|||
@Test |
|||
public void testCreateOrder() throws Exception { |
|||
String json = "{\"partName\":\"motor\",\"amount\":1,\"customerName\":\"honda\"}"; |
|||
|
|||
log.info("Sending order using json payload: {}", json); |
|||
|
|||
// use restlet component to send the order |
|||
Map headers = new HashMap(); |
|||
headers.put("Accept", "application/json"); |
|||
headers.put("Content-Type", "application/json"); |
|||
String id = template.requestBodyAndHeaders("restlet:http://localhost:8080/orders?restletMethod=POST", json, headers, String.class); |
|||
assertNotNull(id); |
|||
|
|||
log.info("Created new order with id " + id); |
|||
|
|||
// should create a new order with id 1 |
|||
assertEquals("1", id); |
|||
} |
|||
|
|||
@Test |
|||
public void testCreateAndGetOrder() throws Exception { |
|||
String json = "{\"partName\":\"motor\",\"amount\":1,\"customerName\":\"honda\"}"; |
|||
|
|||
log.info("Sending order using json payload: {}", json); |
|||
|
|||
// use restlet component to send the order |
|||
Map headers = new HashMap(); |
|||
headers.put("Accept", "application/json"); |
|||
headers.put("Content-Type", "application/json"); |
|||
String id = template.requestBodyAndHeaders("restlet:http://localhost:8080/orders?restletMethod=POST", json, headers, String.class); |
|||
assertNotNull(id); |
|||
|
|||
log.info("Created new order with id " + id); |
|||
|
|||
// should create a new order with id 1 |
|||
assertEquals("1", id); |
|||
|
|||
// use restlet component to get the order |
|||
String response = template.requestBodyAndHeader("restlet:http://localhost:8080/orders/1?restletMethod=GET", null, "Accept", "application/json", String.class); |
|||
log.info("Response: {}", response); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,76 @@ |
|||
package camelinaction; |
|||
|
|||
import org.apache.camel.Exchange; |
|||
import org.apache.camel.test.spring.CamelSpringTestSupport; |
|||
import org.junit.Test; |
|||
import org.springframework.context.support.AbstractApplicationContext; |
|||
import org.springframework.context.support.ClassPathXmlApplicationContext; |
|||
|
|||
public class SpringRestBeanOrderServiceTest extends CamelSpringTestSupport { |
|||
|
|||
@Override |
|||
protected AbstractApplicationContext createApplicationContext() { |
|||
return new ClassPathXmlApplicationContext("camelinaction/SpringRestBeanOrderServiceTest.xml"); |
|||
} |
|||
|
|||
@Test |
|||
public void testGetOrder() throws Exception { |
|||
DummyOrderService orderService = context().getRegistry().lookupByNameAndType("orderService", DummyOrderService.class); |
|||
|
|||
// setup some pre-existing orders |
|||
orderService.setupDummyOrders(); |
|||
|
|||
// use restlet component to get the order |
|||
String response = template.requestBodyAndHeader("restlet:http://localhost:8080/orders/{id}?restletMethod=GET", null, "id", "1", String.class); |
|||
log.info("Response: {}", response); |
|||
} |
|||
|
|||
@Test |
|||
public void testCreateOrder() throws Exception { |
|||
Order order = new Order(); |
|||
order.setAmount(1); |
|||
order.setPartName("motor"); |
|||
order.setCustomerName("honda"); |
|||
|
|||
// convert to XML which we support |
|||
String xml = context.getTypeConverter().convertTo(String.class, order); |
|||
|
|||
log.info("Sending order using xml payload: {}", xml); |
|||
|
|||
// use restlet component to send the order |
|||
String id = template.requestBodyAndHeader("restlet:http://localhost:8080/orders?restletMethod=POST", xml, Exchange.CONTENT_TYPE, "application/xml", String.class); |
|||
assertNotNull(id); |
|||
|
|||
log.info("Created new order with id " + id); |
|||
|
|||
// should create a new order with id 1 |
|||
assertEquals("1", id); |
|||
} |
|||
|
|||
@Test |
|||
public void testCreateAndGetOrder() throws Exception { |
|||
Order order = new Order(); |
|||
order.setAmount(1); |
|||
order.setPartName("motor"); |
|||
order.setCustomerName("honda"); |
|||
|
|||
// convert to XML which we support |
|||
String xml = context.getTypeConverter().convertTo(String.class, order); |
|||
|
|||
log.info("Sending order using xml payload: {}", xml); |
|||
|
|||
// use restlet component to send the order |
|||
String id = template.requestBodyAndHeader("restlet:http://localhost:8080/orders?restletMethod=POST", xml, Exchange.CONTENT_TYPE, "application/xml", String.class); |
|||
assertNotNull(id); |
|||
|
|||
log.info("Created new order with id " + id); |
|||
|
|||
// should create a new order with id 1 |
|||
assertEquals("1", id); |
|||
|
|||
// use restlet component to get the order |
|||
String response = template.requestBodyAndHeader("restlet:http://localhost:8080/orders/{id}?restletMethod=GET", null, "id", "1", String.class); |
|||
log.info("Response: {}", response); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,76 @@ |
|||
package camelinaction; |
|||
|
|||
import org.apache.camel.Exchange; |
|||
import org.apache.camel.test.spring.CamelSpringTestSupport; |
|||
import org.junit.Test; |
|||
import org.springframework.context.support.AbstractApplicationContext; |
|||
import org.springframework.context.support.ClassPathXmlApplicationContext; |
|||
|
|||
public class SpringRestOrderServiceTest extends CamelSpringTestSupport { |
|||
|
|||
@Override |
|||
protected AbstractApplicationContext createApplicationContext() { |
|||
return new ClassPathXmlApplicationContext("camelinaction/SpringRestOrderServiceTest.xml"); |
|||
} |
|||
|
|||
@Test |
|||
public void testGetOrder() throws Exception { |
|||
DummyOrderService orderService = context().getRegistry().lookupByNameAndType("orderService", DummyOrderService.class); |
|||
|
|||
// setup some pre-existing orders |
|||
orderService.setupDummyOrders(); |
|||
|
|||
// use restlet component to get the order |
|||
String response = template.requestBodyAndHeader("restlet:http://localhost:8080/orders/{id}?restletMethod=GET", null, "id", "1", String.class); |
|||
log.info("Response: {}", response); |
|||
} |
|||
|
|||
@Test |
|||
public void testCreateOrder() throws Exception { |
|||
Order order = new Order(); |
|||
order.setAmount(1); |
|||
order.setPartName("motor"); |
|||
order.setCustomerName("honda"); |
|||
|
|||
// convert to XML which we support |
|||
String xml = context.getTypeConverter().convertTo(String.class, order); |
|||
|
|||
log.info("Sending order using xml payload: {}", xml); |
|||
|
|||
// use restlet component to send the order |
|||
String id = template.requestBodyAndHeader("restlet:http://localhost:8080/orders?restletMethod=POST", xml, Exchange.CONTENT_TYPE, "application/xml", String.class); |
|||
assertNotNull(id); |
|||
|
|||
log.info("Created new order with id " + id); |
|||
|
|||
// should create a new order with id 1 |
|||
assertEquals("1", id); |
|||
} |
|||
|
|||
@Test |
|||
public void testCreateAndGetOrder() throws Exception { |
|||
Order order = new Order(); |
|||
order.setAmount(1); |
|||
order.setPartName("motor"); |
|||
order.setCustomerName("honda"); |
|||
|
|||
// convert to XML which we support |
|||
String xml = context.getTypeConverter().convertTo(String.class, order); |
|||
|
|||
log.info("Sending order using xml payload: {}", xml); |
|||
|
|||
// use restlet component to send the order |
|||
String id = template.requestBodyAndHeader("restlet:http://localhost:8080/orders?restletMethod=POST", xml, Exchange.CONTENT_TYPE, "application/xml", String.class); |
|||
assertNotNull(id); |
|||
|
|||
log.info("Created new order with id " + id); |
|||
|
|||
// should create a new order with id 1 |
|||
assertEquals("1", id); |
|||
|
|||
// use restlet component to get the order |
|||
String response = template.requestBodyAndHeader("restlet:http://localhost:8080/orders/{id}?restletMethod=GET", null, "id", "1", String.class); |
|||
log.info("Response: {}", response); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,47 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<beans xmlns="http://www.springframework.org/schema/beans" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xmlns:cxf="http://camel.apache.org/schema/cxf" |
|||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|||
http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd |
|||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> |
|||
|
|||
<!-- the order service --> |
|||
<bean id="orderService" class="camelinaction.DummyOrderService"/> |
|||
|
|||
<!-- CXF-RS server as a bean where we setup the REST web service using the resource class |
|||
and can do additional configurations --> |
|||
<cxf:rsServer id="restOrderServer" address="http://localhost:8080" |
|||
serviceClass="camelinaction.RestOrderService"> |
|||
</cxf:rsServer> |
|||
|
|||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> |
|||
|
|||
<route> |
|||
<!-- use cxfrs:bean and enable the simple binding style --> |
|||
<from uri="cxfrs:bean:restOrderServer?bindingStyle=SimpleConsumer"/> |
|||
<!-- call the route based on the operation invoked on the REST web service --> |
|||
<toD uri="direct:${header.operationName}"/> |
|||
</route> |
|||
|
|||
<!-- routes that implement the REST services --> |
|||
<route> |
|||
<from uri="direct:createOrder"/> |
|||
<bean ref="orderService" method="createOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:getOrder"/> |
|||
<bean ref="orderService" method="getOrder(${header.id})"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:updateOrder"/> |
|||
<bean ref="orderService" method="updateOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:cancelOrder"/> |
|||
<bean ref="orderService" method="cancelOrder(${header.id})"/> |
|||
</route> |
|||
|
|||
</camelContext> |
|||
|
|||
</beans> |
|||
@ -0,0 +1,53 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<beans xmlns="http://www.springframework.org/schema/beans" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xmlns:cxf="http://camel.apache.org/schema/cxf" |
|||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|||
http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd |
|||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> |
|||
|
|||
<!-- the order service --> |
|||
<bean id="orderService" class="camelinaction.DummyOrderService"/> |
|||
|
|||
<!-- enable json support --> |
|||
<bean id="jsonProvider" class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/> |
|||
|
|||
<!-- CXF-RS server as a bean where we setup the REST web service using the resource class |
|||
and can do additional configurations --> |
|||
<cxf:rsServer id="restOrderServer" address="http://localhost:8080" |
|||
serviceClass="camelinaction.RestOrderService"> |
|||
<cxf:providers> |
|||
<ref bean="jsonProvider"/> |
|||
</cxf:providers> |
|||
</cxf:rsServer> |
|||
|
|||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> |
|||
|
|||
<route> |
|||
<!-- use cxfrs:bean and enable the simple binding style --> |
|||
<from uri="cxfrs:bean:restOrderServer?bindingStyle=SimpleConsumer"/> |
|||
<!-- call the route based on the operation invoked on the REST web service --> |
|||
<toD uri="direct:${header.operationName}"/> |
|||
</route> |
|||
|
|||
<!-- routes that implement the REST services --> |
|||
<route> |
|||
<from uri="direct:createOrder"/> |
|||
<bean ref="orderService" method="createOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:getOrder"/> |
|||
<bean ref="orderService" method="getOrder(${header.id})"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:updateOrder"/> |
|||
<bean ref="orderService" method="updateOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:cancelOrder"/> |
|||
<bean ref="orderService" method="cancelOrder(${header.id})"/> |
|||
</route> |
|||
|
|||
</camelContext> |
|||
|
|||
</beans> |
|||
@ -0,0 +1,42 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<beans xmlns="http://www.springframework.org/schema/beans" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation=" |
|||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd |
|||
"> |
|||
|
|||
<!-- the order service --> |
|||
<bean id="orderService" class="camelinaction.DummyOrderService"/> |
|||
|
|||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> |
|||
|
|||
<route> |
|||
<!-- use CXF-RS to setup the REST web service using the resource class |
|||
and use the simple binding style which is recommended to use --> |
|||
<from uri="cxfrs:http://localhost:8080?resourceClasses=camelinaction.RestOrderService&bindingStyle=SimpleConsumer"/> |
|||
<!-- call the route based on the operation invoked on the REST web service --> |
|||
<toD uri="direct:${header.operationName}"/> |
|||
</route> |
|||
|
|||
<!-- routes that implement the REST services --> |
|||
<route> |
|||
<from uri="direct:createOrder"/> |
|||
<bean ref="orderService" method="createOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:getOrder"/> |
|||
<bean ref="orderService" method="getOrder(${header.id})"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:updateOrder"/> |
|||
<bean ref="orderService" method="updateOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:cancelOrder"/> |
|||
<bean ref="orderService" method="cancelOrder(${header.id})"/> |
|||
</route> |
|||
|
|||
</camelContext> |
|||
|
|||
</beans> |
|||
@ -0,0 +1,7 @@ |
|||
log4j.rootLogger=INFO, out |
|||
|
|||
# CONSOLE appender not used by default |
|||
log4j.appender.out=org.apache.log4j.ConsoleAppender |
|||
log4j.appender.out.layout=org.apache.log4j.PatternLayout |
|||
log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n |
|||
|
|||
@ -0,0 +1,5 @@ |
|||
#Generated by Apache Maven |
|||
#Sat Mar 27 12:21:29 IST 2021 |
|||
groupId=com.camelinaction |
|||
artifactId=chapter10-camel-cxf-rest |
|||
version=2.0.0 |
|||
@ -0,0 +1,4 @@ |
|||
camelinaction\OrderService.class |
|||
camelinaction\OrderRoute.class |
|||
camelinaction\RestOrderService.class |
|||
camelinaction\Order.class |
|||
@ -0,0 +1,4 @@ |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\src\main\java\camelinaction\Order.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\src\main\java\camelinaction\OrderRoute.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\src\main\java\camelinaction\RestOrderService.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\src\main\java\camelinaction\OrderService.java |
|||
@ -0,0 +1,5 @@ |
|||
camelinaction\DummyOrderService.class |
|||
camelinaction\SpringRestOrderServiceTest.class |
|||
camelinaction\RestOrderServiceTest.class |
|||
camelinaction\SpringRestBeanOrderServiceJSonTest.class |
|||
camelinaction\SpringRestBeanOrderServiceTest.class |
|||
@ -0,0 +1,5 @@ |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\src\test\java\camelinaction\SpringRestBeanOrderServiceTest.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\src\test\java\camelinaction\RestOrderServiceTest.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\src\test\java\camelinaction\SpringRestOrderServiceTest.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\src\test\java\camelinaction\DummyOrderService.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\src\test\java\camelinaction\SpringRestBeanOrderServiceJSonTest.java |
|||
@ -0,0 +1,61 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.RestOrderServiceTest" time="4.573" tests="3" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf10599293208081275901.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testGetOrder" classname="camelinaction.RestOrderServiceTest" time="3.924"/> |
|||
<testcase name="testCreateOrder" classname="camelinaction.RestOrderServiceTest" time="0.526"/> |
|||
<testcase name="testCreateAndGetOrder" classname="camelinaction.RestOrderServiceTest" time="0.123"/> |
|||
</testsuite> |
|||
@ -0,0 +1,61 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.SpringRestBeanOrderServiceJSonTest" time="5.85" tests="3" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf10599293208081275901.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testGetOrder" classname="camelinaction.SpringRestBeanOrderServiceJSonTest" time="3.108"/> |
|||
<testcase name="testCreateOrder" classname="camelinaction.SpringRestBeanOrderServiceJSonTest" time="1.795"/> |
|||
<testcase name="testCreateAndGetOrder" classname="camelinaction.SpringRestBeanOrderServiceJSonTest" time="0.947"/> |
|||
</testsuite> |
|||
@ -0,0 +1,61 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.SpringRestBeanOrderServiceTest" time="2.448" tests="3" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf10599293208081275901.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testGetOrder" classname="camelinaction.SpringRestBeanOrderServiceTest" time="1.134"/> |
|||
<testcase name="testCreateOrder" classname="camelinaction.SpringRestBeanOrderServiceTest" time="0.784"/> |
|||
<testcase name="testCreateAndGetOrder" classname="camelinaction.SpringRestBeanOrderServiceTest" time="0.53"/> |
|||
</testsuite> |
|||
@ -0,0 +1,61 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.SpringRestOrderServiceTest" time="1.807" tests="3" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf10599293208081275901.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter10\camel-cxf-rest\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testGetOrder" classname="camelinaction.SpringRestOrderServiceTest" time="0.655"/> |
|||
<testcase name="testCreateOrder" classname="camelinaction.SpringRestOrderServiceTest" time="0.669"/> |
|||
<testcase name="testCreateAndGetOrder" classname="camelinaction.SpringRestOrderServiceTest" time="0.483"/> |
|||
</testsuite> |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.RestOrderServiceTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.802 sec - in camelinaction.RestOrderServiceTest |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.SpringRestBeanOrderServiceJSonTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.851 sec - in camelinaction.SpringRestBeanOrderServiceJSonTest |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.SpringRestBeanOrderServiceTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.456 sec - in camelinaction.SpringRestBeanOrderServiceTest |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.SpringRestOrderServiceTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.81 sec - in camelinaction.SpringRestOrderServiceTest |
|||
@ -0,0 +1,47 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<beans xmlns="http://www.springframework.org/schema/beans" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xmlns:cxf="http://camel.apache.org/schema/cxf" |
|||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|||
http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd |
|||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> |
|||
|
|||
<!-- the order service --> |
|||
<bean id="orderService" class="camelinaction.DummyOrderService"/> |
|||
|
|||
<!-- CXF-RS server as a bean where we setup the REST web service using the resource class |
|||
and can do additional configurations --> |
|||
<cxf:rsServer id="restOrderServer" address="http://localhost:8080" |
|||
serviceClass="camelinaction.RestOrderService"> |
|||
</cxf:rsServer> |
|||
|
|||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> |
|||
|
|||
<route> |
|||
<!-- use cxfrs:bean and enable the simple binding style --> |
|||
<from uri="cxfrs:bean:restOrderServer?bindingStyle=SimpleConsumer"/> |
|||
<!-- call the route based on the operation invoked on the REST web service --> |
|||
<toD uri="direct:${header.operationName}"/> |
|||
</route> |
|||
|
|||
<!-- routes that implement the REST services --> |
|||
<route> |
|||
<from uri="direct:createOrder"/> |
|||
<bean ref="orderService" method="createOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:getOrder"/> |
|||
<bean ref="orderService" method="getOrder(${header.id})"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:updateOrder"/> |
|||
<bean ref="orderService" method="updateOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:cancelOrder"/> |
|||
<bean ref="orderService" method="cancelOrder(${header.id})"/> |
|||
</route> |
|||
|
|||
</camelContext> |
|||
|
|||
</beans> |
|||
@ -0,0 +1,53 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<beans xmlns="http://www.springframework.org/schema/beans" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xmlns:cxf="http://camel.apache.org/schema/cxf" |
|||
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|||
http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd |
|||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> |
|||
|
|||
<!-- the order service --> |
|||
<bean id="orderService" class="camelinaction.DummyOrderService"/> |
|||
|
|||
<!-- enable json support --> |
|||
<bean id="jsonProvider" class="com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider"/> |
|||
|
|||
<!-- CXF-RS server as a bean where we setup the REST web service using the resource class |
|||
and can do additional configurations --> |
|||
<cxf:rsServer id="restOrderServer" address="http://localhost:8080" |
|||
serviceClass="camelinaction.RestOrderService"> |
|||
<cxf:providers> |
|||
<ref bean="jsonProvider"/> |
|||
</cxf:providers> |
|||
</cxf:rsServer> |
|||
|
|||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> |
|||
|
|||
<route> |
|||
<!-- use cxfrs:bean and enable the simple binding style --> |
|||
<from uri="cxfrs:bean:restOrderServer?bindingStyle=SimpleConsumer"/> |
|||
<!-- call the route based on the operation invoked on the REST web service --> |
|||
<toD uri="direct:${header.operationName}"/> |
|||
</route> |
|||
|
|||
<!-- routes that implement the REST services --> |
|||
<route> |
|||
<from uri="direct:createOrder"/> |
|||
<bean ref="orderService" method="createOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:getOrder"/> |
|||
<bean ref="orderService" method="getOrder(${header.id})"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:updateOrder"/> |
|||
<bean ref="orderService" method="updateOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:cancelOrder"/> |
|||
<bean ref="orderService" method="cancelOrder(${header.id})"/> |
|||
</route> |
|||
|
|||
</camelContext> |
|||
|
|||
</beans> |
|||
@ -0,0 +1,42 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<beans xmlns="http://www.springframework.org/schema/beans" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation=" |
|||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd |
|||
"> |
|||
|
|||
<!-- the order service --> |
|||
<bean id="orderService" class="camelinaction.DummyOrderService"/> |
|||
|
|||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> |
|||
|
|||
<route> |
|||
<!-- use CXF-RS to setup the REST web service using the resource class |
|||
and use the simple binding style which is recommended to use --> |
|||
<from uri="cxfrs:http://localhost:8080?resourceClasses=camelinaction.RestOrderService&bindingStyle=SimpleConsumer"/> |
|||
<!-- call the route based on the operation invoked on the REST web service --> |
|||
<toD uri="direct:${header.operationName}"/> |
|||
</route> |
|||
|
|||
<!-- routes that implement the REST services --> |
|||
<route> |
|||
<from uri="direct:createOrder"/> |
|||
<bean ref="orderService" method="createOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:getOrder"/> |
|||
<bean ref="orderService" method="getOrder(${header.id})"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:updateOrder"/> |
|||
<bean ref="orderService" method="updateOrder"/> |
|||
</route> |
|||
<route> |
|||
<from uri="direct:cancelOrder"/> |
|||
<bean ref="orderService" method="cancelOrder(${header.id})"/> |
|||
</route> |
|||
|
|||
</camelContext> |
|||
|
|||
</beans> |
|||
@ -0,0 +1,7 @@ |
|||
log4j.rootLogger=INFO, out |
|||
|
|||
# CONSOLE appender not used by default |
|||
log4j.appender.out=org.apache.log4j.ConsoleAppender |
|||
log4j.appender.out.layout=org.apache.log4j.PatternLayout |
|||
log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n |
|||
|
|||
@ -0,0 +1,17 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<projectDescription> |
|||
<name>chapter6-jms</name> |
|||
<comment></comment> |
|||
<projects> |
|||
</projects> |
|||
<buildSpec> |
|||
<buildCommand> |
|||
<name>org.eclipse.m2e.core.maven2Builder</name> |
|||
<arguments> |
|||
</arguments> |
|||
</buildCommand> |
|||
</buildSpec> |
|||
<natures> |
|||
<nature>org.eclipse.m2e.core.maven2Nature</nature> |
|||
</natures> |
|||
</projectDescription> |
|||
@ -0,0 +1,2 @@ |
|||
eclipse.preferences.version=1 |
|||
encoding/<project>=UTF-8 |
|||
@ -0,0 +1,4 @@ |
|||
activeProfiles= |
|||
eclipse.preferences.version=1 |
|||
resolveWorkspaceProjects=true |
|||
version=1 |
|||
@ -0,0 +1,18 @@ |
|||
Chapter 6 - jms |
|||
---------------- |
|||
|
|||
This directory holds examples of the JMS component |
|||
|
|||
### 6.3.1 - Sending and receiving JMS messages |
|||
|
|||
To run this example, execute the following command: |
|||
|
|||
mvn camel:run |
|||
|
|||
This example will keep running until you press Ctrl-C. |
|||
|
|||
### 6.3.2 - Request-reply messaging |
|||
|
|||
To run this example, execute the following command: |
|||
|
|||
mvn test -Dtest=RequestReplyJmsTest |
|||
@ -0,0 +1,378 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|||
|
|||
<modelVersion>4.0.0</modelVersion> |
|||
<groupId>com.camelinaction</groupId> |
|||
<artifactId>chapter6-jms</artifactId> |
|||
<version>2.0.0</version> |
|||
<packaging>pom</packaging> |
|||
<name>Camel in Action 2</name> |
|||
<inceptionYear>2015</inceptionYear> |
|||
|
|||
|
|||
|
|||
<properties> |
|||
|
|||
<activemq-version>5.15.7</activemq-version> |
|||
<activemq-karaf-version>5.13.8</activemq-karaf-version> |
|||
<camel-version>2.25.0</camel-version> |
|||
<cxf-version>3.3.5</cxf-version> |
|||
<hawtio-version>1.4.68</hawtio-version> |
|||
<commons-dbcp2-version>2.5.0</commons-dbcp2-version> |
|||
<deltaspike-version>1.9.0</deltaspike-version> |
|||
<hystrix-version>1.5.18</hystrix-version> |
|||
<jackson-version>2.9.9</jackson-version> |
|||
<javax-mail-version>1.6.1</javax-mail-version> |
|||
<jolokia-version>1.6.0</jolokia-version> |
|||
<jetty-plugin-version>8.1.17.v20150415</jetty-plugin-version> |
|||
<jetty9-plugin-version>9.4.18.v20190429</jetty9-plugin-version> |
|||
<junit-version>4.12</junit-version> |
|||
<karaf-version>4.2.1</karaf-version> |
|||
<log4j-version>1.2.17</log4j-version> |
|||
<maven-bundle-plugin-version>3.3.0</maven-bundle-plugin-version> |
|||
<mock-javamail-version>1.9</mock-javamail-version> |
|||
<slf4j-version>1.7.25</slf4j-version> |
|||
<spring-version>5.1.6.RELEASE</spring-version> |
|||
<spring-boot-version>2.1.4.RELEASE</spring-boot-version> |
|||
<swagger-version>1.5.21</swagger-version> |
|||
<xbean-version>4.5</xbean-version> |
|||
<vertx-version>3.6.3</vertx-version> |
|||
<weld-version>2.4.7.Final</weld-version> |
|||
<wildfly-swarm-version>2017.11.0</wildfly-swarm-version> |
|||
|
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
|||
</properties> |
|||
|
|||
|
|||
<dependencies> |
|||
|
|||
<!-- Camel --> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-parent</artifactId> |
|||
<version>${camel-version}</version> |
|||
<scope>import</scope> |
|||
<type>pom</type> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>spi-annotations</artifactId> |
|||
<version>${camel-version}</version> |
|||
</dependency> |
|||
|
|||
<!-- ActiveMQ --> |
|||
<dependency> |
|||
<groupId>org.apache.activemq</groupId> |
|||
<artifactId>activemq-all</artifactId> |
|||
<version>${activemq-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.activemq</groupId> |
|||
<artifactId>activemq-camel</artifactId> |
|||
<version>${activemq-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.activemq</groupId> |
|||
<artifactId>activemq-pool</artifactId> |
|||
<version>${activemq-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.xbean</groupId> |
|||
<artifactId>xbean-spring</artifactId> |
|||
<version>${xbean-version}</version> |
|||
<exclusions> |
|||
<exclusion> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring</artifactId> |
|||
</exclusion> |
|||
</exclusions> |
|||
</dependency> |
|||
|
|||
<!-- Logging --> |
|||
<dependency> |
|||
<groupId>org.slf4j</groupId> |
|||
<artifactId>slf4j-api</artifactId> |
|||
<version>${slf4j-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.slf4j</groupId> |
|||
<artifactId>slf4j-log4j12</artifactId> |
|||
<version>${slf4j-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>log4j</groupId> |
|||
<artifactId>log4j</artifactId> |
|||
<version>${log4j-version}</version> |
|||
</dependency> |
|||
|
|||
<!-- Testing --> |
|||
<dependency> |
|||
<groupId>junit</groupId> |
|||
<artifactId>junit</artifactId> |
|||
<version>${junit-version}</version> |
|||
</dependency> |
|||
|
|||
<!-- Jolokia --> |
|||
<dependency> |
|||
<groupId>org.jolokia</groupId> |
|||
<artifactId>jolokia-core</artifactId> |
|||
<version>${jolokia-version}</version> |
|||
</dependency> |
|||
|
|||
<!-- Spring --> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-context</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-test</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-core</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-beans</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-web</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-aop</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-jdbc</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-orm</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-jms</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-context-support</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-tx</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.springframework</groupId> |
|||
<artifactId>spring-expression</artifactId> |
|||
<version>${spring-version}</version> |
|||
</dependency> |
|||
|
|||
<!-- Java FTP server --> |
|||
<dependency> |
|||
<groupId>org.apache.ftpserver</groupId> |
|||
<artifactId>ftpserver-core</artifactId> |
|||
<version>1.0.0</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.ftpserver</groupId> |
|||
<artifactId>ftplet-api</artifactId> |
|||
<version>1.0.0</version> |
|||
</dependency> |
|||
<dependency> |
|||
<groupId>org.apache.mina</groupId> |
|||
<artifactId>mina-core</artifactId> |
|||
<version>2.0.9</version> |
|||
</dependency> |
|||
|
|||
|
|||
|
|||
|
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-core</artifactId> |
|||
<version>${camel-version}</version> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-test-spring</artifactId> |
|||
<version>${camel-version}</version> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-jms</artifactId> |
|||
<version>${camel-version}</version> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.apache.activemq</groupId> |
|||
<artifactId>activemq-all</artifactId> |
|||
<version>${activemq-version}</version> |
|||
</dependency> |
|||
|
|||
<!-- xbean is needed for ActiveMQ broker XML configuration in Spring XML files --> |
|||
<dependency> |
|||
<groupId>org.apache.xbean</groupId> |
|||
<artifactId>xbean-spring</artifactId> |
|||
<version>${xbean-version}</version> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.slf4j</groupId> |
|||
<artifactId>slf4j-log4j12</artifactId> |
|||
<version>${slf4j-version}</version> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>log4j</groupId> |
|||
<artifactId>log4j</artifactId> |
|||
<version>${log4j-version}</version> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>junit</groupId> |
|||
<artifactId>junit</artifactId> |
|||
<version>${junit-version}</version> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
</dependencies> |
|||
|
|||
<build> |
|||
<plugins> |
|||
|
|||
<!-- Allows the routes to be run via 'mvn camel:run' --> |
|||
<plugin> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-maven-plugin</artifactId> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-compiler-plugin</artifactId> |
|||
<version>3.6.1</version> |
|||
<configuration> |
|||
<source>1.8</source> |
|||
<target>1.8</target> |
|||
<maxmem>512M</maxmem> |
|||
<showDeprecation>true</showDeprecation> |
|||
</configuration> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-eclipse-plugin</artifactId> |
|||
<version>2.9</version> |
|||
<configuration> |
|||
<downloadSources>true</downloadSources> |
|||
<downloadJavadocs>false</downloadJavadocs> |
|||
</configuration> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-resources-plugin</artifactId> |
|||
<version>2.4.3</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-clean-plugin</artifactId> |
|||
<version>2.4.1</version> |
|||
<configuration> |
|||
<filesets> |
|||
<fileset> |
|||
<directory>activemq-data</directory> |
|||
</fileset> |
|||
</filesets> |
|||
</configuration> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-install-plugin</artifactId> |
|||
<version>2.5.2</version> |
|||
</plugin> |
|||
<plugin> |
|||
<artifactId>maven-remote-resources-plugin</artifactId> |
|||
<version>1.5</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-jar-plugin</artifactId> |
|||
<version>2.6</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-dependency-plugin</artifactId> |
|||
<version>2.10</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-surefire-plugin</artifactId> |
|||
<version>2.18.1</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.maven.plugins</groupId> |
|||
<artifactId>maven-checkstyle-plugin</artifactId> |
|||
<version>2.15</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.codehaus.mojo</groupId> |
|||
<artifactId>exec-maven-plugin</artifactId> |
|||
<version>1.6.0</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-maven-plugin</artifactId> |
|||
<version>${camel-version}</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-package-maven-plugin</artifactId> |
|||
<version>${camel-version}</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>io.hawt</groupId> |
|||
<artifactId>hawtio-maven-plugin</artifactId> |
|||
<version>${hawtio-version}</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.felix</groupId> |
|||
<artifactId>maven-bundle-plugin</artifactId> |
|||
<version>${maven-bundle-plugin-version}</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-api-component-maven-plugin</artifactId> |
|||
<version>${camel-version}</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.codehaus.mojo</groupId> |
|||
<artifactId>build-helper-maven-plugin</artifactId> |
|||
<version>1.10</version> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.wildfly.plugins</groupId> |
|||
<artifactId>wildfly-maven-plugin</artifactId> |
|||
<version>1.1.0.Alpha11</version> |
|||
</plugin> |
|||
|
|||
</plugins> |
|||
</build> |
|||
|
|||
</project> |
|||
|
|||
@ -0,0 +1,2 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<order name="motor" amount="1" customer="honda"/> |
|||
@ -0,0 +1,47 @@ |
|||
package camelinaction; |
|||
|
|||
import org.apache.camel.Exchange; |
|||
import org.apache.camel.Processor; |
|||
import org.apache.camel.builder.RouteBuilder; |
|||
|
|||
/** |
|||
* A set of routes that watches a directory for new orders, reads them, converts the order |
|||
* file into a JMS Message and then sends it to the JMS incomingOrders queue hosted |
|||
* on an embedded ActiveMQ broker instance. |
|||
* |
|||
* From there a content-based router is used to send the order to either the |
|||
* xmlOrders or csvOrders queue. |
|||
*/ |
|||
public class OrderRouter extends RouteBuilder { |
|||
|
|||
@Override |
|||
public void configure() { |
|||
// load file orders from src/data into the JMS queue |
|||
from("file:src/data?noop=true").to("jms:incomingOrders"); |
|||
|
|||
// content-based router |
|||
from("jms:incomingOrders") |
|||
.choice() |
|||
.when(header("CamelFileName").endsWith(".xml")) |
|||
.to("jms:topic:xmlOrders") |
|||
.when(header("CamelFileName").endsWith(".csv")) |
|||
.to("jms:topic:csvOrders"); |
|||
|
|||
from("jms:topic:xmlOrders").to("jms:accounting"); |
|||
from("jms:topic:xmlOrders").to("jms:production"); |
|||
|
|||
// test that our route is working |
|||
from("jms:accounting").process(new Processor() { |
|||
public void process(Exchange exchange) throws Exception { |
|||
System.out.println("Accounting received order: " |
|||
+ exchange.getIn().getHeader("CamelFileName")); |
|||
} |
|||
}); |
|||
from("jms:production").process(new Processor() { |
|||
public void process(Exchange exchange) throws Exception { |
|||
System.out.println("Production received order: " |
|||
+ exchange.getIn().getHeader("CamelFileName")); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
@ -0,0 +1,31 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!-- Configures the Camel Context--> |
|||
|
|||
<beans xmlns="http://www.springframework.org/schema/beans" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xmlns:broker="http://activemq.apache.org/schema/core" |
|||
xsi:schemaLocation=" |
|||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|||
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd |
|||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> |
|||
|
|||
<!-- set up ActiveMQ broker --> |
|||
<broker:broker useJmx="false" persistent="false" brokerName="localhost"> |
|||
<broker:transportConnectors> |
|||
<broker:transportConnector name="tcp" uri="tcp://localhost:61616"/> |
|||
</broker:transportConnectors> |
|||
</broker:broker> |
|||
|
|||
<bean id="jms" class="org.apache.camel.component.jms.JmsComponent"> |
|||
<property name="connectionFactory"> |
|||
<bean class="org.apache.activemq.ActiveMQConnectionFactory"> |
|||
<property name="brokerURL" value="tcp://localhost:61616"/> |
|||
</bean> |
|||
</property> |
|||
</bean> |
|||
|
|||
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> |
|||
<package>camelinaction</package> |
|||
</camelContext> |
|||
|
|||
</beans> |
|||
@ -0,0 +1,15 @@ |
|||
# |
|||
# The logging properties used for eclipse testing, We want to see INFO output on the console. |
|||
# |
|||
log4j.rootLogger=INFO, out |
|||
|
|||
# uncomment the next line to debug Camel |
|||
#log4j.logger.org.apache.camel=DEBUG |
|||
|
|||
# CONSOLE appender not used by default |
|||
log4j.appender.out=org.apache.log4j.ConsoleAppender |
|||
log4j.appender.out.layout=org.apache.log4j.PatternLayout |
|||
log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n |
|||
#log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n |
|||
|
|||
log4j.throwableRenderer=org.apache.log4j.EnhancedThrowableRenderer |
|||
@ -0,0 +1,46 @@ |
|||
package camelinaction; |
|||
|
|||
import static org.apache.camel.component.jms.JmsComponent.jmsComponentClientAcknowledge; |
|||
|
|||
import javax.jms.ConnectionFactory; |
|||
|
|||
import org.apache.activemq.ActiveMQConnectionFactory; |
|||
import org.apache.camel.CamelContext; |
|||
import org.apache.camel.builder.RouteBuilder; |
|||
import org.apache.camel.test.junit4.CamelTestSupport; |
|||
import org.junit.Test; |
|||
|
|||
public class RequestReplyJmsTest extends CamelTestSupport { |
|||
|
|||
protected CamelContext createCamelContext() throws Exception { |
|||
CamelContext camelContext = super.createCamelContext(); |
|||
|
|||
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://localhost?broker.persistent=false"); |
|||
camelContext.addComponent("jms", jmsComponentClientAcknowledge(connectionFactory)); |
|||
|
|||
return camelContext; |
|||
} |
|||
|
|||
protected RouteBuilder createRouteBuilder() throws Exception { |
|||
return new RouteBuilder() { |
|||
|
|||
@Override |
|||
public void configure() throws Exception { |
|||
from("jms:incomingOrders").inOut("jms:validate"); |
|||
from("jms:validate").bean(ValidatorBean.class); |
|||
} |
|||
}; |
|||
} |
|||
|
|||
@Test |
|||
public void testClientGetsReply() throws Exception { |
|||
Object requestBody = template.requestBody("jms:incomingOrders", "<order name=\"motor\" amount=\"1\" customer=\"honda\"/>"); |
|||
assertEquals("Valid", requestBody); |
|||
} |
|||
|
|||
@Test |
|||
public void testInvalidMessage() throws Exception { |
|||
Object requestBody = template.requestBody("jms:incomingOrders", "<order name=\"fork\" amount=\"1\" customer=\"honda\"/>"); |
|||
assertEquals("Invalid", requestBody); |
|||
} |
|||
} |
|||
@ -0,0 +1,17 @@ |
|||
package camelinaction; |
|||
|
|||
import org.apache.camel.Exchange; |
|||
import org.apache.camel.language.XPath; |
|||
|
|||
public class ValidatorBean { |
|||
|
|||
public void validate(@XPath("/order/@name") String partName, Exchange exchange) { |
|||
// only motors are valid parts in this simple test bean |
|||
if ("motor".equals(partName)) { |
|||
exchange.getOut().setBody("Valid"); |
|||
} else { |
|||
exchange.getOut().setBody("Invalid"); |
|||
} |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,33 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<classpath> |
|||
<classpathentry kind="src" output="target/classes" path="src/main/java"> |
|||
<attributes> |
|||
<attribute name="optional" value="true"/> |
|||
<attribute name="maven.pomderived" value="true"/> |
|||
</attributes> |
|||
</classpathentry> |
|||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> |
|||
<attributes> |
|||
<attribute name="optional" value="true"/> |
|||
<attribute name="maven.pomderived" value="true"/> |
|||
<attribute name="test" value="true"/> |
|||
</attributes> |
|||
</classpathentry> |
|||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> |
|||
<attributes> |
|||
<attribute name="maven.pomderived" value="true"/> |
|||
<attribute name="test" value="true"/> |
|||
</attributes> |
|||
</classpathentry> |
|||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> |
|||
<attributes> |
|||
<attribute name="maven.pomderived" value="true"/> |
|||
</attributes> |
|||
</classpathentry> |
|||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> |
|||
<attributes> |
|||
<attribute name="maven.pomderived" value="true"/> |
|||
</attributes> |
|||
</classpathentry> |
|||
<classpathentry kind="output" path="target/classes"/> |
|||
</classpath> |
|||
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<projectDescription> |
|||
<name>chapter3-order</name> |
|||
<comment></comment> |
|||
<projects> |
|||
</projects> |
|||
<buildSpec> |
|||
<buildCommand> |
|||
<name>org.eclipse.jdt.core.javabuilder</name> |
|||
<arguments> |
|||
</arguments> |
|||
</buildCommand> |
|||
<buildCommand> |
|||
<name>org.eclipse.m2e.core.maven2Builder</name> |
|||
<arguments> |
|||
</arguments> |
|||
</buildCommand> |
|||
</buildSpec> |
|||
<natures> |
|||
<nature>org.eclipse.jdt.core.javanature</nature> |
|||
<nature>org.eclipse.m2e.core.maven2Nature</nature> |
|||
</natures> |
|||
</projectDescription> |
|||
@ -0,0 +1,4 @@ |
|||
eclipse.preferences.version=1 |
|||
encoding//src/test/java=UTF-8 |
|||
encoding//src/test/resources=UTF-8 |
|||
encoding/<project>=UTF-8 |
|||
@ -0,0 +1,8 @@ |
|||
eclipse.preferences.version=1 |
|||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 |
|||
org.eclipse.jdt.core.compiler.compliance=1.8 |
|||
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled |
|||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning |
|||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore |
|||
org.eclipse.jdt.core.compiler.release=disabled |
|||
org.eclipse.jdt.core.compiler.source=1.8 |
|||
@ -0,0 +1,4 @@ |
|||
activeProfiles= |
|||
eclipse.preferences.version=1 |
|||
resolveWorkspaceProjects=true |
|||
version=1 |
|||
@ -0,0 +1,36 @@ |
|||
Chapter 3 - order |
|||
---------------- |
|||
|
|||
This directory holds examples related to converting messages that contain domain objects (in this case PurchaseOrder). |
|||
|
|||
### 3.3.2 - Transforming from XML to a POJO using JAXB |
|||
|
|||
This example can be run using: |
|||
|
|||
mvn test -Dtest=PurchaseOrderJaxbTest |
|||
|
|||
### 3.4.2 - Using Camel’s CSV data format |
|||
|
|||
This example can be run using: |
|||
|
|||
mvn test -Dtest=PurchaseOrderCsvTest |
|||
mvn test -Dtest=PurchaseOrderCsvSpringTest |
|||
|
|||
### 3.4.3 - Using Camel’s Bindy data format |
|||
|
|||
This example can be run using: |
|||
|
|||
mvn test –Dtest=PurchaseOrderBindyTest |
|||
mvn test –Dtest=PurchaseOrderUnmarshalBindyTest |
|||
|
|||
### 3.4.4 - Using Camel’s JSON data format |
|||
|
|||
This example can be run using: |
|||
|
|||
mvn test –Dtest=PurchaseOrderJSONTest |
|||
|
|||
### 3.5.1 - Using Apache Velocity |
|||
|
|||
This example can be run using: |
|||
|
|||
mvn test -Dtest=PurchaseOrderVelocityTest |
|||
@ -0,0 +1,104 @@ |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
|||
|
|||
<modelVersion>4.0.0</modelVersion> |
|||
|
|||
<parent> |
|||
<groupId>com.camelinaction</groupId> |
|||
<artifactId>chapter3</artifactId> |
|||
<version>2.0.0</version> |
|||
<relativePath>..</relativePath> |
|||
</parent> |
|||
|
|||
<artifactId>chapter3-order</artifactId> |
|||
<name>Camel in Action 2 :: Chapter 3 :: Order Transformation</name> |
|||
|
|||
<dependencies> |
|||
|
|||
<!-- https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api --> |
|||
<dependency> |
|||
<groupId>javax.xml.bind</groupId> |
|||
<artifactId>jaxb-api</artifactId> |
|||
<version>2.3.1</version> |
|||
</dependency> |
|||
|
|||
|
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-core</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-spring</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- when using JAXB data format --> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-jaxb</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- when using CSV data format --> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-csv</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- when using Bindy data format --> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-bindy</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- when using JSON data format --> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-jackson</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- is used when testing JSON to simulate a http server --> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-jetty</artifactId> |
|||
</dependency> |
|||
|
|||
<!-- when using Velocity templating --> |
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-velocity</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-test-spring</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.apache.camel</groupId> |
|||
<artifactId>camel-http</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>log4j</groupId> |
|||
<artifactId>log4j</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.slf4j</groupId> |
|||
<artifactId>slf4j-log4j12</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>junit</groupId> |
|||
<artifactId>junit</artifactId> |
|||
<scope>test</scope> |
|||
</dependency> |
|||
</dependencies> |
|||
|
|||
</project> |
|||
|
|||
@ -0,0 +1,42 @@ |
|||
package camelinaction; |
|||
|
|||
import javax.xml.bind.annotation.XmlAccessType; |
|||
import javax.xml.bind.annotation.XmlAccessorType; |
|||
import javax.xml.bind.annotation.XmlAttribute; |
|||
import javax.xml.bind.annotation.XmlRootElement; |
|||
|
|||
@XmlRootElement |
|||
@XmlAccessorType(XmlAccessType.FIELD) |
|||
public class PurchaseOrder { |
|||
@XmlAttribute |
|||
private String name; |
|||
@XmlAttribute |
|||
private double price; |
|||
@XmlAttribute |
|||
private double amount; |
|||
|
|||
public double getAmount() { |
|||
return amount; |
|||
} |
|||
|
|||
public void setAmount(double amount) { |
|||
this.amount = amount; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name; |
|||
} |
|||
|
|||
public double getPrice() { |
|||
return price; |
|||
} |
|||
|
|||
public void setPrice(double price) { |
|||
this.price = price; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,36 @@ |
|||
package camelinaction; |
|||
|
|||
import java.util.List; |
|||
|
|||
import org.apache.camel.component.mock.MockEndpoint; |
|||
import org.apache.camel.test.spring.CamelSpringTestSupport; |
|||
import org.junit.Test; |
|||
import org.springframework.context.support.AbstractXmlApplicationContext; |
|||
import org.springframework.context.support.ClassPathXmlApplicationContext; |
|||
|
|||
public class PurchaseOrderCsvSpringTest extends CamelSpringTestSupport { |
|||
|
|||
@SuppressWarnings("unchecked") |
|||
@Test |
|||
public void testCsv() throws Exception { |
|||
MockEndpoint mock = getMockEndpoint("mock:queue.csv"); |
|||
mock.expectedMessageCount(2); |
|||
|
|||
assertMockEndpointsSatisfied(); |
|||
|
|||
List line1 = mock.getReceivedExchanges().get(0).getIn().getBody(List.class); |
|||
assertEquals("Camel in Action", line1.get(0)); |
|||
assertEquals("6999", line1.get(1)); |
|||
assertEquals("1", line1.get(2)); |
|||
|
|||
List line2 = mock.getReceivedExchanges().get(1).getIn().getBody(List.class); |
|||
assertEquals("Activemq in Action", line2.get(0)); |
|||
assertEquals("4495", line2.get(1)); |
|||
assertEquals("2", line2.get(2)); |
|||
} |
|||
|
|||
@Override |
|||
protected AbstractXmlApplicationContext createApplicationContext() { |
|||
return new ClassPathXmlApplicationContext("camelinaction/order-csv.xml"); |
|||
} |
|||
} |
|||
@ -0,0 +1,45 @@ |
|||
package camelinaction; |
|||
|
|||
import java.util.List; |
|||
|
|||
import org.apache.camel.builder.RouteBuilder; |
|||
import org.apache.camel.component.mock.MockEndpoint; |
|||
import org.apache.camel.test.junit4.CamelTestSupport; |
|||
import org.junit.Test; |
|||
|
|||
public class PurchaseOrderCsvTest extends CamelTestSupport { |
|||
|
|||
@SuppressWarnings("unchecked") |
|||
@Test |
|||
public void testCsv() throws Exception { |
|||
MockEndpoint mock = getMockEndpoint("mock:queue.csv"); |
|||
mock.expectedMessageCount(2); |
|||
|
|||
assertMockEndpointsSatisfied(); |
|||
|
|||
List line1 = mock.getReceivedExchanges().get(0).getIn().getBody(List.class); |
|||
assertEquals("Camel in Action", line1.get(0)); |
|||
assertEquals("6999", line1.get(1)); |
|||
assertEquals("1", line1.get(2)); |
|||
|
|||
List line2 = mock.getReceivedExchanges().get(1).getIn().getBody(List.class); |
|||
assertEquals("Activemq in Action", line2.get(0)); |
|||
assertEquals("4495", line2.get(1)); |
|||
assertEquals("2", line2.get(2)); |
|||
} |
|||
|
|||
@Override |
|||
protected RouteBuilder createRouteBuilder() throws Exception { |
|||
return new RouteBuilder() { |
|||
@Override |
|||
public void configure() throws Exception { |
|||
context.setTracing(true); |
|||
|
|||
from("file://src/test/resources?noop=true&fileName=order.csv") |
|||
.unmarshal().csv() |
|||
.split(body()) |
|||
.to("mock:queue.csv"); |
|||
} |
|||
}; |
|||
} |
|||
} |
|||
@ -0,0 +1,66 @@ |
|||
package camelinaction; |
|||
|
|||
import org.apache.camel.Header; |
|||
import org.apache.camel.builder.RouteBuilder; |
|||
import org.apache.camel.impl.JndiRegistry; |
|||
import org.apache.camel.model.dataformat.JsonLibrary; |
|||
import org.apache.camel.test.junit4.CamelTestSupport; |
|||
import org.junit.Test; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
|
|||
/** |
|||
* Example how to use JSON data format with the camel-jackson component. |
|||
* <p/> |
|||
* We use camel-jetty to expose a HTTP service which returns the JSON response. |
|||
*/ |
|||
public class PurchaseOrderJSONTest extends CamelTestSupport { |
|||
|
|||
private static Logger LOG = LoggerFactory.getLogger(PurchaseOrderJSONTest.class); |
|||
|
|||
@Override |
|||
protected JndiRegistry createRegistry() throws Exception { |
|||
// register our service bean in the Camel registry |
|||
JndiRegistry jndi = super.createRegistry(); |
|||
jndi.bind("orderService", new OrderServiceBean()); |
|||
return jndi; |
|||
} |
|||
|
|||
@Test |
|||
public void testJSON() throws Exception { |
|||
String out = template.requestBody("jetty:http://localhost:8080/order/service?id=123", null, String.class); |
|||
LOG.info("Response from order service: " + out); |
|||
|
|||
assertNotNull(out); |
|||
assertTrue(out.contains("Camel in Action")); |
|||
} |
|||
|
|||
@Override |
|||
protected RouteBuilder createRouteBuilder() throws Exception { |
|||
return new RouteBuilder() { |
|||
@Override |
|||
public void configure() throws Exception { |
|||
from("jetty://http://0.0.0.0:8080/order/service") |
|||
.bean("orderService", "lookup") |
|||
.marshal().json(JsonLibrary.Jackson); |
|||
} |
|||
}; |
|||
} |
|||
|
|||
public static class OrderServiceBean { |
|||
|
|||
public PurchaseOrder lookup(@Header("id") String id) { |
|||
LOG.info("Finding purchase order for id " + id); |
|||
// just return a fixed response |
|||
PurchaseOrder order = new PurchaseOrder(); |
|||
order.setPrice(69.99); |
|||
order.setAmount(1); |
|||
order.setName("Camel in Action"); |
|||
return order; |
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
|
|||
@ -0,0 +1,31 @@ |
|||
package camelinaction; |
|||
|
|||
import org.apache.camel.component.mock.MockEndpoint; |
|||
import org.apache.camel.test.spring.CamelSpringTestSupport; |
|||
import org.junit.Test; |
|||
import org.springframework.context.support.AbstractXmlApplicationContext; |
|||
import org.springframework.context.support.ClassPathXmlApplicationContext; |
|||
|
|||
public class PurchaseOrderJaxbTest extends CamelSpringTestSupport { |
|||
|
|||
@Test |
|||
public void testJaxb() throws Exception { |
|||
MockEndpoint mock = getMockEndpoint("mock:order"); |
|||
mock.expectedMessageCount(1); |
|||
mock.message(0).body().isInstanceOf(PurchaseOrder.class); |
|||
|
|||
PurchaseOrder order = new PurchaseOrder(); |
|||
order.setName("Camel in Action"); |
|||
order.setPrice(6999); |
|||
order.setAmount(1); |
|||
|
|||
template.sendBody("direct:order", order); |
|||
|
|||
assertMockEndpointsSatisfied(); |
|||
} |
|||
|
|||
@Override |
|||
protected AbstractXmlApplicationContext createApplicationContext() { |
|||
return new ClassPathXmlApplicationContext("camelinaction/order-jaxb.xml"); |
|||
} |
|||
} |
|||
@ -0,0 +1,43 @@ |
|||
package camelinaction; |
|||
|
|||
import org.apache.camel.builder.RouteBuilder; |
|||
import org.apache.camel.component.mock.MockEndpoint; |
|||
import org.apache.camel.test.junit4.CamelTestSupport; |
|||
import org.junit.Test; |
|||
|
|||
public class PurchaseOrderVelocityTest extends CamelTestSupport { |
|||
|
|||
@Test |
|||
public void testVelocity() throws Exception { |
|||
MockEndpoint mock = getMockEndpoint("mock:mail"); |
|||
mock.expectedMessageCount(1); |
|||
mock.message(0).header("Subject").isEqualTo("Thanks for ordering"); |
|||
mock.message(0).header("From").isEqualTo("donotreply@riders.com"); |
|||
mock.message(0).body().contains("Thank you for ordering 1.0 piece(s) of Camel in Action at a cost of 6999.0."); |
|||
|
|||
PurchaseOrder order = new PurchaseOrder(); |
|||
order.setName("Camel in Action"); |
|||
order.setPrice(6999); |
|||
order.setAmount(1); |
|||
|
|||
template.sendBody("direct:mail", order); |
|||
|
|||
assertMockEndpointsSatisfied(); |
|||
} |
|||
|
|||
@Override |
|||
protected RouteBuilder createRouteBuilder() throws Exception { |
|||
return new RouteBuilder() { |
|||
@Override |
|||
public void configure() throws Exception { |
|||
from("direct:mail") |
|||
.setHeader("Subject", constant("Thanks for ordering")) |
|||
.setHeader("From", constant("donotreply@riders.com")) |
|||
.to("velocity://camelinaction/mail.vm") |
|||
.to("log:mail") |
|||
.to("mock:mail"); |
|||
} |
|||
}; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,43 @@ |
|||
package camelinaction.bindy; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
import org.apache.camel.dataformat.bindy.annotation.CsvRecord; |
|||
import org.apache.camel.dataformat.bindy.annotation.DataField; |
|||
|
|||
@CsvRecord(separator = ",", crlf = "UNIX") |
|||
public class PurchaseOrder { |
|||
|
|||
@DataField(pos = 1) |
|||
private String name; |
|||
|
|||
@DataField(pos = 2, precision = 2) |
|||
private BigDecimal price; |
|||
|
|||
@DataField(pos = 3) |
|||
private int amount; |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name; |
|||
} |
|||
|
|||
public BigDecimal getPrice() { |
|||
return price; |
|||
} |
|||
|
|||
public void setPrice(BigDecimal price) { |
|||
this.price = price; |
|||
} |
|||
|
|||
public int getAmount() { |
|||
return amount; |
|||
} |
|||
|
|||
public void setAmount(int amount) { |
|||
this.amount = amount; |
|||
} |
|||
} |
|||
@ -0,0 +1,64 @@ |
|||
package camelinaction.bindy; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.Locale; |
|||
|
|||
import junit.framework.TestCase; |
|||
import org.apache.camel.CamelContext; |
|||
import org.apache.camel.ProducerTemplate; |
|||
import org.apache.camel.builder.RouteBuilder; |
|||
import org.apache.camel.component.mock.MockEndpoint; |
|||
import org.apache.camel.impl.DefaultCamelContext; |
|||
import org.apache.camel.model.dataformat.BindyType; |
|||
import org.junit.Test; |
|||
|
|||
public class PurchaseOrderBindyTest extends TestCase { |
|||
|
|||
private Locale locale; |
|||
|
|||
@Override |
|||
protected void setUp() throws Exception { |
|||
super.setUp(); |
|||
// use US locale for testing so we use dot as decimal in the price |
|||
locale = Locale.getDefault(); |
|||
Locale.setDefault(Locale.US); |
|||
} |
|||
|
|||
@Override |
|||
protected void tearDown() throws Exception { |
|||
super.tearDown(); |
|||
// restore back |
|||
Locale.setDefault(locale); |
|||
} |
|||
|
|||
@Test |
|||
public void testBindy() throws Exception { |
|||
CamelContext context = new DefaultCamelContext(); |
|||
context.addRoutes(createRoute()); |
|||
context.start(); |
|||
|
|||
MockEndpoint mock = context.getEndpoint("mock:result", MockEndpoint.class); |
|||
mock.expectedBodiesReceived("Camel in Action,69.99,1\n"); |
|||
|
|||
PurchaseOrder order = new PurchaseOrder(); |
|||
order.setAmount(1); |
|||
order.setPrice(new BigDecimal("69.99")); |
|||
order.setName("Camel in Action"); |
|||
|
|||
ProducerTemplate template = context.createProducerTemplate(); |
|||
template.sendBody("direct:toCsv", order); |
|||
|
|||
mock.assertIsSatisfied(); |
|||
} |
|||
|
|||
public RouteBuilder createRoute() { |
|||
return new RouteBuilder() { |
|||
public void configure() throws Exception { |
|||
from("direct:toCsv") |
|||
.marshal().bindy(BindyType.Csv, camelinaction.bindy.PurchaseOrder.class) |
|||
.to("mock:result"); |
|||
} |
|||
}; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,84 @@ |
|||
package camelinaction.bindy; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
import junit.framework.TestCase; |
|||
import org.apache.camel.CamelContext; |
|||
import org.apache.camel.ProducerTemplate; |
|||
import org.apache.camel.builder.RouteBuilder; |
|||
import org.apache.camel.component.mock.MockEndpoint; |
|||
import org.apache.camel.impl.DefaultCamelContext; |
|||
import org.apache.camel.model.dataformat.BindyType; |
|||
import org.junit.Test; |
|||
|
|||
/** |
|||
* Test that demonstrates how to turn a CSV into a Object using bindy |
|||
*/ |
|||
public class PurchaseOrderUnmarshalBindyTest extends TestCase { |
|||
|
|||
@Test |
|||
public void testUnmarshalBindyMultipleRows() throws Exception { |
|||
CamelContext context = new DefaultCamelContext(); |
|||
context.addRoutes(createRoute()); |
|||
context.start(); |
|||
|
|||
MockEndpoint mock = context.getEndpoint("mock:result", MockEndpoint.class); |
|||
mock.expectedMessageCount(1); |
|||
|
|||
ProducerTemplate template = context.createProducerTemplate(); |
|||
template.sendBody("direct:toObject", "Camel in Action,39.95,1\nActiveMQ in Action,39.95,1"); |
|||
|
|||
mock.assertIsSatisfied(); |
|||
|
|||
// bindy now turned that into a list of rows so we need to grab the order from the list |
|||
List rows = mock.getReceivedExchanges().get(0).getIn().getBody(List.class); |
|||
PurchaseOrder order = (PurchaseOrder) rows.get(0); |
|||
assertNotNull(order); |
|||
PurchaseOrder order2 = (PurchaseOrder) rows.get(1); |
|||
assertNotNull(order2); |
|||
|
|||
// assert the order contains the expected data |
|||
assertEquals("Camel in Action", order.getName()); |
|||
assertEquals("39.95", order.getPrice().toString()); |
|||
assertEquals(1, order.getAmount()); |
|||
assertEquals("ActiveMQ in Action", order2.getName()); |
|||
assertEquals("39.95", order2.getPrice().toString()); |
|||
assertEquals(1, order2.getAmount()); |
|||
} |
|||
|
|||
@Test |
|||
public void testUnmarshalBindy() throws Exception { |
|||
CamelContext context = new DefaultCamelContext(); |
|||
context.addRoutes(createRoute()); |
|||
context.start(); |
|||
|
|||
MockEndpoint mock = context.getEndpoint("mock:result", MockEndpoint.class); |
|||
mock.expectedMessageCount(1); |
|||
|
|||
ProducerTemplate template = context.createProducerTemplate(); |
|||
template.sendBody("direct:toObject", "Camel in Action,39.95,1"); |
|||
|
|||
mock.assertIsSatisfied(); |
|||
|
|||
// bindy returns the order directly (not in a list) if there is only one element |
|||
PurchaseOrder order = mock.getReceivedExchanges().get(0).getIn().getBody(PurchaseOrder.class); |
|||
assertNotNull(order); |
|||
|
|||
// assert the order contains the expected data |
|||
assertEquals("Camel in Action", order.getName()); |
|||
assertEquals("39.95", order.getPrice().toString()); |
|||
assertEquals(1, order.getAmount()); |
|||
} |
|||
|
|||
public RouteBuilder createRoute() { |
|||
return new RouteBuilder() { |
|||
public void configure() throws Exception { |
|||
from("direct:toObject") |
|||
.unmarshal().bindy(BindyType.Csv, camelinaction.bindy.PurchaseOrder.class) |
|||
.to("mock:result"); |
|||
} |
|||
}; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1 @@ |
|||
PurchaseOrder |
|||
@ -0,0 +1,5 @@ |
|||
Dear customer |
|||
|
|||
Thank you for ordering ${body.amount} piece(s) of ${body.name} at a cost of ${body.price}. |
|||
|
|||
This is an automated email, please do not reply. |
|||
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<beans xmlns="http://www.springframework.org/schema/beans" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation=" |
|||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd |
|||
"> |
|||
|
|||
<camelContext id="camel" trace="true" xmlns="http://camel.apache.org/schema/spring"> |
|||
|
|||
<route> |
|||
<from uri="file://src/test/resources?noop=true&fileName=order.csv"/> |
|||
<unmarshal><csv/></unmarshal> |
|||
<split> |
|||
<!-- use simple language to refer to the body --> |
|||
<simple>body</simple> |
|||
<to uri="mock:queue.csv"/> |
|||
</split> |
|||
</route> |
|||
|
|||
</camelContext> |
|||
|
|||
</beans> |
|||
@ -0,0 +1,28 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<beans xmlns="http://www.springframework.org/schema/beans" |
|||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation=" |
|||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd |
|||
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd"> |
|||
|
|||
<camelContext id="camel" trace="true" xmlns="http://camel.apache.org/schema/spring"> |
|||
|
|||
<dataFormats> |
|||
<jaxb id="jaxb" contextPath="camelinaction"/> |
|||
</dataFormats> |
|||
|
|||
<route> |
|||
<from uri="direct:order"/> |
|||
<marshal ref="jaxb"/> |
|||
<to uri="seda:queue:order"/> |
|||
</route> |
|||
|
|||
<route> |
|||
<from uri="seda:queue:order"/> |
|||
<unmarshal ref="jaxb"/> |
|||
<to uri="mock:order"/> |
|||
</route> |
|||
|
|||
</camelContext> |
|||
|
|||
</beans> |
|||
@ -0,0 +1,12 @@ |
|||
# |
|||
# The logging properties used during tests.. |
|||
# |
|||
log4j.rootLogger=INFO, out |
|||
|
|||
#log4j.logger.org.apache.camel=DEBUG |
|||
|
|||
# CONSOLE appender not used by default |
|||
log4j.appender.out=org.apache.log4j.ConsoleAppender |
|||
log4j.appender.out.layout=org.apache.log4j.PatternLayout |
|||
log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n |
|||
|
|||
@ -0,0 +1,2 @@ |
|||
Camel in Action,6999,1 |
|||
Activemq in Action,4495,2 |
|||
@ -0,0 +1,5 @@ |
|||
#Generated by Apache Maven |
|||
#Sat Mar 27 12:36:03 IST 2021 |
|||
groupId=com.camelinaction |
|||
artifactId=chapter3-order |
|||
version=2.0.0 |
|||
@ -0,0 +1,15 @@ |
|||
camelinaction\PurchaseOrderJSONTest$1.class |
|||
camelinaction\PurchaseOrderJSONTest$OrderServiceBean.class |
|||
camelinaction\PurchaseOrderJSONTest.class |
|||
camelinaction\bindy\PurchaseOrderBindyTest.class |
|||
camelinaction\bindy\PurchaseOrderUnmarshalBindyTest$1.class |
|||
camelinaction\PurchaseOrder.class |
|||
camelinaction\PurchaseOrderCsvSpringTest.class |
|||
camelinaction\PurchaseOrderCsvTest$1.class |
|||
camelinaction\PurchaseOrderVelocityTest$1.class |
|||
camelinaction\bindy\PurchaseOrder.class |
|||
camelinaction\bindy\PurchaseOrderBindyTest$1.class |
|||
camelinaction\bindy\PurchaseOrderUnmarshalBindyTest.class |
|||
camelinaction\PurchaseOrderVelocityTest.class |
|||
camelinaction\PurchaseOrderCsvTest.class |
|||
camelinaction\PurchaseOrderJaxbTest.class |
|||
@ -0,0 +1,9 @@ |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\src\test\java\camelinaction\PurchaseOrderJaxbTest.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\src\test\java\camelinaction\PurchaseOrderCsvSpringTest.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\src\test\java\camelinaction\bindy\PurchaseOrderBindyTest.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\src\test\java\camelinaction\bindy\PurchaseOrder.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\src\test\java\camelinaction\PurchaseOrder.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\src\test\java\camelinaction\PurchaseOrderJSONTest.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\src\test\java\camelinaction\bindy\PurchaseOrderUnmarshalBindyTest.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\src\test\java\camelinaction\PurchaseOrderCsvTest.java |
|||
G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\src\test\java\camelinaction\PurchaseOrderVelocityTest.java |
|||
@ -0,0 +1,59 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.PurchaseOrderCsvSpringTest" time="4.524" tests="1" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf13200209250453105800.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testCsv" classname="camelinaction.PurchaseOrderCsvSpringTest" time="4.524"/> |
|||
</testsuite> |
|||
@ -0,0 +1,59 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.PurchaseOrderCsvTest" time="1.099" tests="1" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf13200209250453105800.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testCsv" classname="camelinaction.PurchaseOrderCsvTest" time="1.099"/> |
|||
</testsuite> |
|||
@ -0,0 +1,59 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.PurchaseOrderJSONTest" time="1.275" tests="1" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf13200209250453105800.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testJSON" classname="camelinaction.PurchaseOrderJSONTest" time="1.275"/> |
|||
</testsuite> |
|||
@ -0,0 +1,59 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.PurchaseOrderJaxbTest" time="1.795" tests="1" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf13200209250453105800.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testJaxb" classname="camelinaction.PurchaseOrderJaxbTest" time="1.795"/> |
|||
</testsuite> |
|||
@ -0,0 +1,59 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.PurchaseOrderVelocityTest" time="0.485" tests="1" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf13200209250453105800.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testVelocity" classname="camelinaction.PurchaseOrderVelocityTest" time="0.485"/> |
|||
</testsuite> |
|||
@ -0,0 +1,59 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.bindy.PurchaseOrderBindyTest" time="1.698" tests="1" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf13200209250453105800.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testBindy" classname="camelinaction.bindy.PurchaseOrderBindyTest" time="1.698"/> |
|||
</testsuite> |
|||
@ -0,0 +1,60 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<testsuite name="camelinaction.bindy.PurchaseOrderUnmarshalBindyTest" time="0.324" tests="2" errors="0" skipped="0" failures="0"> |
|||
<properties> |
|||
<property name="java.runtime.name" value="OpenJDK Runtime Environment"/> |
|||
<property name="java.vm.version" value="15.0.1+9-18"/> |
|||
<property name="sun.boot.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin"/> |
|||
<property name="maven.multiModuleProjectDirectory" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master"/> |
|||
<property name="java.vm.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vendor.url" value="https://java.oracle.com/"/> |
|||
<property name="guice.disable.misplaced.annotation.check" value="true"/> |
|||
<property name="path.separator" value=";"/> |
|||
<property name="java.vm.name" value="OpenJDK 64-Bit Server VM"/> |
|||
<property name="sun.os.patch.level" value=""/> |
|||
<property name="user.script" value=""/> |
|||
<property name="user.country" value="US"/> |
|||
<property name="sun.java.launcher" value="SUN_STANDARD"/> |
|||
<property name="java.vm.specification.name" value="Java Virtual Machine Specification"/> |
|||
<property name="user.dir" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order"/> |
|||
<property name="java.vm.compressedOopsMode" value="Zero based"/> |
|||
<property name="java.runtime.version" value="15.0.1+9-18"/> |
|||
<property name="os.arch" value="amd64"/> |
|||
<property name="java.io.tmpdir" value="C:\Users\PRANAV\AppData\Local\Temp\"/> |
|||
<property name="line.separator" value=" "/> |
|||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="user.variant" value=""/> |
|||
<property name="os.name" value="Windows 10"/> |
|||
<property name="classworlds.conf" value="G:\Project\FuseTraining\Projects\FusePOC\workspace1\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf13200209250453105800.tmp"/> |
|||
<property name="sun.jnu.encoding" value="Cp1252"/> |
|||
<property name="java.library.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin/server;C:/Users/PRANAV/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507/jre/bin;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\AdoptOpenJDK\java\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\PRANAV\AppData\Local\Microsoft\WindowsApps;C:\Users\PRANAV\AppData\Local\Programs\Microsoft VS Code\bin;C:\adb;C:\Program Files\Git\cmd;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Program Files\Azure Data Studio\bin;C:\Program Files\TortoiseGit\bin;C:\kafka_2.13-2.7.0\bin\windows;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Python27;C:\Python27\Scripts;C:\AdoptOpenJDK\jdk-8.0.282.8-openj9\bin;C:\Program Files\Azure Data Studio\bin;C:\kafka_2.13-2.7.0\bin\windows;G:\Project\FuseTraining\apache-maven-3.6.3\bin;C:\Python27;C:\Python27\Scripts;C:\apache-cassandra-3.11.10\bin;;C:\WINDOWS\System32;;."/> |
|||
<property name="jdk.debug" value="release"/> |
|||
<property name="java.class.version" value="59.0"/> |
|||
<property name="java.specification.name" value="Java Platform API Specification"/> |
|||
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/> |
|||
<property name="os.version" value="10.0"/> |
|||
<property name="user.home" value="C:\Users\PRANAV"/> |
|||
<property name="user.timezone" value="Asia/Calcutta"/> |
|||
<property name="file.encoding" value="Cp1252"/> |
|||
<property name="java.specification.version" value="15"/> |
|||
<property name="user.name" value="PRANAV"/> |
|||
<property name="java.class.path" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.m2e.maven.runtime_1.16.0.20200610-1735\jars\plexus-classworlds-2.6.0.jar"/> |
|||
<property name="java.vm.specification.version" value="15"/> |
|||
<property name="sun.arch.data.model" value="64"/> |
|||
<property name="sun.java.command" value="org.codehaus.plexus.classworlds.launcher.Launcher -B clean install"/> |
|||
<property name="java.home" value="C:\Users\PRANAV\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_15.0.1.v20201027-0507\jre"/> |
|||
<property name="user.language" value="en"/> |
|||
<property name="java.specification.vendor" value="Oracle Corporation"/> |
|||
<property name="java.vm.info" value="mixed mode"/> |
|||
<property name="java.version" value="15.0.1"/> |
|||
<property name="java.vendor" value="Oracle Corporation"/> |
|||
<property name="maven.home" value="G:\Project\FuseTraining\Projects\FusePOC\camelinaction2-master\chapter3\order\EMBEDDED"/> |
|||
<property name="file.separator" value="\"/> |
|||
<property name="java.version.date" value="2020-10-20"/> |
|||
<property name="java.vendor.url.bug" value="https://bugreport.java.com/bugreport/"/> |
|||
<property name="sun.io.unicode.encoding" value="UnicodeLittle"/> |
|||
<property name="sun.cpu.endian" value="little"/> |
|||
<property name="sun.cpu.isalist" value="amd64"/> |
|||
</properties> |
|||
<testcase name="testUnmarshalBindyMultipleRows" classname="camelinaction.bindy.PurchaseOrderUnmarshalBindyTest" time="0.201"/> |
|||
<testcase name="testUnmarshalBindy" classname="camelinaction.bindy.PurchaseOrderUnmarshalBindyTest" time="0.123"/> |
|||
</testsuite> |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.PurchaseOrderCsvSpringTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.538 sec - in camelinaction.PurchaseOrderCsvSpringTest |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.PurchaseOrderCsvTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.1 sec - in camelinaction.PurchaseOrderCsvTest |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.PurchaseOrderJSONTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.276 sec - in camelinaction.PurchaseOrderJSONTest |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.PurchaseOrderJaxbTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.795 sec - in camelinaction.PurchaseOrderJaxbTest |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.PurchaseOrderVelocityTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.546 sec - in camelinaction.PurchaseOrderVelocityTest |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.bindy.PurchaseOrderBindyTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.701 sec - in camelinaction.bindy.PurchaseOrderBindyTest |
|||
@ -0,0 +1,4 @@ |
|||
------------------------------------------------------------------------------- |
|||
Test set: camelinaction.bindy.PurchaseOrderUnmarshalBindyTest |
|||
------------------------------------------------------------------------------- |
|||
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.325 sec - in camelinaction.bindy.PurchaseOrderUnmarshalBindyTest |
|||
Some files were not shown because too many files changed in this diff
Write
Preview
Loading…
Cancel
Save
Reference in new issue