Usually, I'd just override createCamelContext() and add "jdbc" as a StubComponent.
On 26 September 2016 at 09:37, dermoritz <tantea...@hotmail.com> wrote: > I have a route that end on a jdbc endpoint: > > > > The jdbc Endpoint is created this way: > > > > In my unit test i want "mock and skip" the database: > > > > I also tried other patterns: "jdbc:db", "jdbc://db" (this string is shown > in > log and is the output of toString) > > But no matter what pattern used the database is called. Log shows > > > > And the correct (empty) result is sent to mock endpoint at the end. And the > mocked endpint ``mock:jdbc:db`` or ``mock:jdbc://db`` () never receives > anything. > > So how to skip this jdbc endpoint? > > And how to get a reference to mock endpoints that are created with > wildcards > like '*'? > > > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Camel- > isMockEndpointsAndSkip-doesn-t-skip-jdbc-endpoint-tp5788065.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Matt Sicker <boa...@gmail.com>