TouK / camel-spock

Small library allowing you to test your Camel routes with Spock
5 stars 1 forks source link

Upgrade to use latest groovy and camel versions #1

Open ryangardner opened 9 years ago

ryangardner commented 9 years ago

I tried doing a quick update to groovy 2.3.8 and camel 2.14.1 but wasn't able to - I hit a few weird issues.

going to groovy 2.3.8 I needed to make the CamelExtension be: IAnnotationDrivenExtension<Annotation> instead of IAnnotationDrivenExtension

After doing those changes, 3 of the test methods fail - but I'm not super clear how it is supposed to work anyway, so this might be best done by you guys.

danspeck commented 8 years ago

I have also tried to update the dependencies and am having trouble going from camel-2.13.2 to camel-14.0. The gradle output for "gradle clean test" when ext.camelVersion = '2.14.0' is:

bash $ gradle clean test
:clean
:compileJava UP-TO-DATE
:compileGroovy
:processResources UP-TO-DATE
:classes
:compileTestJava UP-TO-DATE
:compileTestGroovy
:processTestResources
:testClasses
:test

pl.touk.camelSpock.CamelWithProcessorsSpec > InOut should leave message on out endpoint                               FAILED
    org.spockframework.runtime.SpockComparisonFailure at CamelWithProcessorsSpec.groovy:68

pl.touk.camelSpock.CamelWithProcessorsSpec > InOut is the same as requestBody FAILED
    org.spockframework.runtime.SpockComparisonFailure at CamelWithProcessorsSpec.groovy:80

pl.touk.camelSpock.CamelWithProcessorsSpec > InOut is the same as requestBody -- more sugar                               FAILED
    org.spockframework.runtime.SpockComparisonFailure at CamelWithProcessorsSpec.groovy:93

14 tests completed, 3 failed

It looks like something inside camel itself may have changed but I don't understand the three tests in question so I don't know.