Skip to content

Commit

Permalink
Tests fixed. closing #32
Browse files Browse the repository at this point in the history
  • Loading branch information
Arsen A. Gutsal committed Oct 3, 2013
1 parent 62879c9 commit 056a521
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/integration/grails/routing/RoutesTests.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package grails.routing
import static org.junit.Assert.*
import org.junit.*

import org.apache.camel.CamelContext
import org.apache.camel.test.junit4.CamelTestSupport
import org.apache.camel.builder.RouteBuilder

Expand All @@ -11,6 +12,11 @@ class RoutesTests extends CamelTestSupport {
def camelContext
def producerTemplate

@Override
protected CamelContext createCamelContext() throws Exception {
return camelContext
}

@Before
void setUp() {
super.setUp()
Expand All @@ -32,13 +38,12 @@ class RoutesTests extends CamelTestSupport {
@Test
void testSimpleRoute() {
def mockEndpoint
mockEndpoint = camelContext.getEndpoint('mock:bar')
//mockEndpoint = getMockEndpoint('mock:bar')
mockEndpoint = getMockEndpoint('mock:bar')

mockEndpoint.expectedMessageCount(1)

producerTemplate.sendBody('direct:foo', 'Hello World')

mockEndpoint.assertIsSatisfied()
assertMockEndpointsSatisfied()
}
}

0 comments on commit 056a521

Please sign in to comment.