Giter Site home page Giter Site logo

camel-spock's People

Contributors

mlevvy avatar mproch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gpie3k

camel-spock's Issues

Upgrade to use latest groovy and camel versions

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.

Implement a way to use the AdviceWith feature of Camel

The simplest way would be a way to have it expose the CamelContext in a variable so that in a setup block something like this:

camelContext.getRouteDefinition("Database Poller").adviceWith(camelContext, new AdviceWithRouteBuilder() {
            @Override
            void configure() throws Exception {
                replaceFromWith("direct:simulatePoll")
                weaveById("pollDatabaseQuery").before().setBody(constant('SELECT Foo, CREATED FROMtest_user_updates WHERE QUEUED=0'))
                weaveById("enqueueCodes").replace().to("mock:enqueue")
            }
        })

There might be a nicer way to expose the adviceWith that didn't require the whole getRouteDefinition - that'd be fine too - but getting access to modifying the route would make it easy to modify certain routes for testing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.