Skip to content

Commit

Permalink
plugin version changed to 1.4.1, camel version upgraded to 2.15.0, te…
Browse files Browse the repository at this point in the history
…st fixed
  • Loading branch information
Arsen A. Gutsal committed Mar 21, 2015
1 parent 83a9653 commit 93af004
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 22 deletions.
2 changes: 1 addition & 1 deletion RoutingGrailsPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import javax.activation.DataHandler
import javax.security.auth.Subject

class RoutingGrailsPlugin {
def version = '1.4.0'
def version = '1.4.1'
def grailsVersion = '2.0.0 > *'
def artefacts = [new RouteArtefactHandler()]
def dependsOn = [:]
Expand Down
2 changes: 1 addition & 1 deletion grails-app/conf/BuildConfig.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
grails.project.work.dir = 'target'

def camelVersion = '2.13.2'
def camelVersion = '2.15.0'

grails.project.fork = [

Expand Down
26 changes: 6 additions & 20 deletions test/integration/grails/routing/RoutesTests.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,16 @@ import org.junit.*
import org.apache.camel.CamelContext
import org.apache.camel.test.junit4.CamelTestSupport
import org.apache.camel.builder.RouteBuilder
import org.apache.camel.builder.AdviceWithRouteBuilder;

class RoutesTests extends CamelTestSupport {

def camelContext
def producerTemplate

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

@Before
void setUp() {
super.setUp()

camelContext.addRoutes(
context.addRoutes(
new RouteBuilder(){
@Override
void configure(){
Expand All @@ -30,19 +24,11 @@ class RoutesTests extends CamelTestSupport {
})
}

@After
void tearDown() {
camelContext.stop()
}

@Test
void testSimpleRoute() {
def mockEndpoint
mockEndpoint = getMockEndpoint('mock:bar')

mockEndpoint.expectedMessageCount(1)
void testSimpleRoute() {
getMockEndpoint('mock:bar').expectedMessageCount(1)

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

assertMockEndpointsSatisfied()
}
Expand Down

0 comments on commit 93af004

Please sign in to comment.