Your test class looks like that:

public class X extends CamelTestSupport {
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {    
            public void configure() throws Exception {
                from("direct:exec")
                    .to("exec:java?args=-version") 
                    .process(new Processor() { 
                        public void process(Exchange exchange) throws
Exception { 
                        assertIsInstanceOf(ExecResult.class,
exchange.getIn().getBody());

That assertIsInstanceOf method is not defined in the Processor interface,
but in the outer CamelTestSupport class.


Jan



> -----Ursprüngliche Nachricht-----
> Von: Philippe de Rochambeau [mailto:phi...@free.fr]
> Gesendet: Montag, 25. November 2013 08:26
> An: users@camel.apache.org
> Betreff: Re: assertIsInstanceOf
> 
> Bilgin,
> 
> my IDE displays the following message « The method assertIsInstanceOf
> is undefined for the the type new Processor ».
> 
> Furthermore, I have tried adding the following dependency to my
> pom.xml, but to no avail:
> 
> <dependency>
>           <groupId>org.apache.camel</groupId>
>           <artifactId>camel-test</artifactId>
>           <version>2.12.1</version>
> </dependency>
> 
> Philippe
> 
> 
> Le 24 nov. 2013 à 23:58, Bilgin Ibryam <bibr...@gmail.com> a écrit :
> 
> > You should be able to find out that easily if you use an IDE (like
> > eclipse or IntelliJ)
> >
> > it is in org.apache.camel.test.junit4.TestSupport
> >
> > HTH,
> >
> >
> >
> >
> > On Sun, Nov 24, 2013 at 9:31 PM, Philippe de Rochambeau
> <phi...@free.fr>wrote:
> >
> >> Hello,
> >>
> >> does anyone know which class the assertIsInstanceOf method is
> defined in?
> >>
> >> For instance,
> >>
> >> assertIsInstanceOf(ExecResult.class, exchange.getIn().getBody());
> >>
> >> Many thanks.
> >>
> >> Philippe
> >>
> >
> >
> >
> > --
> > Bilgin Ibryam
> >
> > Apache Camel & Apache OFBiz committer
> > Blog: ofbizian.com
> > Twitter: @bibryam <https://twitter.com/bibryam>
> >
> > Author of Instant Apache Camel Message Routing
> > http://www.amazon.com/dp/1783283475


Reply via email to