The other option could be also to modify the tests like:

if (jdk7) {
   assertEquals("application/octet-stream ...", handler.getContentType());
} else {
   assertEquals("image/jpeg ...", handler.getContentType());
}


Babak Vahdat wrote
> 
> Hi
> 
> The latest JDK 7 build went ALMOST well:
> 
> https://builds.apache.org/job/Camel.trunk.fulltest.java7/131/#showFailuresLink
> 
> The cause of the failed 5 tests in camel-mail is because of:
> 
> https://issues.apache.org/jira/browse/CAMEL-5339
> 
> As the built-in activation API inside JDK 7 itself behaves differently
> than the one coming through the maven transitive dependency:
> 
> javax.activation:activation:jar:1.1
> 
> As we intend to support both the JDK 6 & JDK 7 I think we should revert
> the change here (doing so on my own workspace resolves while building on
> JDK 7 / OS X).
> 
> Any thoughts?
> 
> Babak
> 


--
View this message in context: 
http://camel.465427.n5.nabble.com/Getting-closer-with-Java7-tp5692627p5714253.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to