File tree 3 files changed +8
-22
lines changed
test/integration/grails/routing
3 files changed +8
-22
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import javax.activation.DataHandler
14
14
import javax.security.auth.Subject
15
15
16
16
class RoutingGrailsPlugin {
17
- def version = ' 1.4.0 '
17
+ def version = ' 1.4.1 '
18
18
def grailsVersion = ' 2.0.0 > *'
19
19
def artefacts = [new RouteArtefactHandler ()]
20
20
def dependsOn = [:]
Original file line number Diff line number Diff line change 1
1
grails. project. work. dir = ' target'
2
2
3
- def camelVersion = ' 2.13.2 '
3
+ def camelVersion = ' 2.15.0 '
4
4
5
5
grails. project. fork = [
6
6
Original file line number Diff line number Diff line change @@ -6,22 +6,16 @@ import org.junit.*
6
6
import org.apache.camel.CamelContext
7
7
import org.apache.camel.test.junit4.CamelTestSupport
8
8
import org.apache.camel.builder.RouteBuilder
9
+ import org.apache.camel.builder.AdviceWithRouteBuilder ;
9
10
10
11
class RoutesTests extends CamelTestSupport {
11
-
12
- def camelContext
13
- def producerTemplate
14
-
15
- @Override
16
- protected CamelContext createCamelContext () throws Exception {
17
- return camelContext
18
- }
12
+ // def producerTemplate
19
13
20
14
@Before
21
15
void setUp () {
22
16
super . setUp()
23
17
24
- camelContext . addRoutes(
18
+ context . addRoutes(
25
19
new RouteBuilder (){
26
20
@Override
27
21
void configure (){
@@ -30,19 +24,11 @@ class RoutesTests extends CamelTestSupport {
30
24
})
31
25
}
32
26
33
- @After
34
- void tearDown () {
35
- camelContext. stop()
36
- }
37
-
38
27
@Test
39
- void testSimpleRoute () {
40
- def mockEndpoint
41
- mockEndpoint = getMockEndpoint(' mock:bar' )
42
-
43
- mockEndpoint. expectedMessageCount(1 )
28
+ void testSimpleRoute () {
29
+ getMockEndpoint(' mock:bar' ). expectedMessageCount(1 )
44
30
45
- producerTemplate . sendBody(' direct:foo' , ' Hello World' )
31
+ template . sendBody(' direct:foo' , ' Hello World' )
46
32
47
33
assertMockEndpointsSatisfied()
48
34
}
You can’t perform that action at this time.
0 commit comments