Hello Claus,

with 2.11-SNAPSHOT and
@MockEndpointsAndSkip("activemq:queue:DEV.PRICE.REQUEST")

a "mock" is created for that endpoint, but the mocked endpoint is not
skipped. I was not able to debug it right away because the source jars
do not build:

[ERROR] Failed to execute goal
org.codehaus.mojo:ianal-maven-plugin:1.0-alpha-1:verify-legal-files
(default) on project camel-apns: Artifact does not contain any legal
files: camel-apns-2.11-SNAPSHOT-sources.jar

With 2.10.x I had no luck at all. The dependency
pax-exam-extender-service-2.3.1.jar seems to be corrupted in the maven
repo. When downloaded the jar is 0 byte. Checking the repo location with
a browser reports a file size > 0 byte, but a manual download also did
result in a 0 byte file.


Ralf


-----Original Message-----
From: Claus Ibsen <claus.ib...@gmail.com>
Reply-to: users@camel.apache.org
To: users@camel.apache.org
Subject: Re: Annotation @MockEndpointsAndSkip not working in Camel
2.10.0
Date: Fri, 7 Sep 2012 16:25:21 +0200

Hi

I think its fixed on trunk and 2.10 branch.

Do you mind checking that?
http://camel.apache.org/source.html

On Fri, Sep 7, 2012 at 4:17 PM, Ralf Steppacher
<ralf.steppac...@derivativepartners.com> wrote:
> Hi,
>
> there appears to be a bug in
> CamelSpringTestContextLoader::handleMockEndpointsAndSkip(..). It tests
> for MockEndpoints.class instead of MockEndpointsAndSkip.class. Line 433:
>
> if (testClass.isAnnotationPresent(MockEndpoints.class)) {
>
> should be
>
> if (testClass.isAnnotationPresent(MockEndpointsAndSkip.class)) {
>
>
> Ralf



Reply via email to