File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed
main/java/com/iluwatar/message/channel
test/java/com/iluwatar/message/channel Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11package com .iluwatar .message .channel ;
22
3+ import org .apache .camel .CamelContext ;
4+ import org .apache .camel .impl .DefaultCamelContext ;
5+
36public 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}
Original file line number Diff line number Diff line change 1010public class AppTest {
1111
1212 @ Test
13- public void test () {
13+ public void test () throws Exception {
1414 String [] args = {};
1515 App .main (args );
1616 }
Original file line number Diff line number Diff line change 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 >
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 >
You can’t perform that action at this time.
0 commit comments