X Tutup
Skip to content

Commit cd4d420

Browse files
committed
iluwatar#143 Added Camel dependency
1 parent c4912b2 commit cd4d420

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

message-channel/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
</parent>
1111
<artifactId>message-channel</artifactId>
1212
<dependencies>
13+
<dependency>
14+
<groupId>org.apache.camel</groupId>
15+
<artifactId>camel-core</artifactId>
16+
</dependency>
1317
<dependency>
1418
<groupId>junit</groupId>
1519
<artifactId>junit</artifactId>
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
package com.iluwatar.message.channel;
22

3+
import org.apache.camel.CamelContext;
4+
import org.apache.camel.impl.DefaultCamelContext;
5+
36
public class App {
47

5-
public static void main(String[] args) {
6-
System.out.println("Hello World!");
8+
public static void main(String[] args) throws Exception {
9+
CamelContext context = new DefaultCamelContext();
10+
context.start();
11+
Thread.sleep(10000);
12+
context.stop();
713
}
814
}

message-channel/src/test/java/com/iluwatar/message/channel/AppTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public class AppTest {
1111

1212
@Test
13-
public void test() {
13+
public void test() throws Exception {
1414
String[] args = {};
1515
App.main(args);
1616
}

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<coveralls.version>3.1.0</coveralls.version>
1818
<jacoco.version>0.7.2.201409121644</jacoco.version>
1919
<commons-dbcp.version>1.4</commons-dbcp.version>
20+
<camel.version>2.15.3</camel.version>
2021
</properties>
2122
<modules>
2223
<module>abstract-factory</module>
@@ -105,6 +106,11 @@
105106
<artifactId>commons-dbcp</artifactId>
106107
<version>${commons-dbcp.version}</version>
107108
</dependency>
109+
<dependency>
110+
<groupId>org.apache.camel</groupId>
111+
<artifactId>camel-core</artifactId>
112+
<version>${camel.version}</version>
113+
</dependency>
108114
<dependency>
109115
<groupId>junit</groupId>
110116
<artifactId>junit</artifactId>

0 commit comments

Comments
 (0)
X Tutup