mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 16:15:23 +00:00
#143 Added Camel dependency
This commit is contained in:
1 parent
c4912b2a2b
commit
cd4d420376
4 files changed
+19
-3
No files matched your search
@@ -1,8 +1,14 @@
|
||||
package com.iluwatar.message.channel;
|
||||
|
||||
import org.apache.camel.CamelContext;
|
||||
import org.apache.camel.impl.DefaultCamelContext;
|
||||
|
||||
public class App {
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello World!");
|
||||
public static void main(String[] args) throws Exception {
|
||||
CamelContext context = new DefaultCamelContext();
|
||||
context.start();
|
||||
Thread.sleep(10000);
|
||||
context.stop();
|
||||
}
|
||||
}
|
||||
@@ -10,7 +10,7 @@ import org.junit.Test;
|
||||
public class AppTest {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
public void test() throws Exception {
|
||||
String[] args = {};
|
||||
App.main(args);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user