[JBossWS] - Re: No tests for @SchemaValidation annotation in 3.0.1 ?
by ljgp
Hi Richard,
Thanks for the reply. As mentioned in the previous posts, I already got the source from jbossws-3.0.1-native-2.0.4.GA-src.zip and examined the org/jboss/test/ws/jaxws/jbws1172/* tests. This caused me to wonder if I missed something, because there I did _not_ find a test for the annotation. Quoting myself:
"I am probably overlooking something, because I cannot find a proper test for the @SchemaValidation annotation.
There are two endpoint classes, org.jboss.test.ws.jaxws.jbws1172.ValidatingEndpoint.java and NonValidatingEndpoint.java
The annotation processor processes the @SchemaValidation annotation by adding the relevant feature to the endpoint.
However, in JBWS1172TestCase.java, the testcases ignore the defined endpoints, and instead add the validating feature to endpoints defined in the testcode. So, to me it seems the handling of the @SchemaValidation annotation is not tested here. Is there another test for this maybe ? ".
If the question is not clear please let me know and I will try to clarify.
Cheers, Luc.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148924#4148924
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148924
16 years, 4 months
[JBoss AOP] - Re: About multiple introductions and mixins
by elysch
Thank you very much for your prompt response (sorry for the "Spanish" part, though)
"kabir.khan(a)jboss.com" wrote : I got a bit lost in the translation of your code, so I am not sure. But it looks like you have some problems in your java code. Java allows you to cast any object to any interface, and as long as the method exists there you should be fine.
YES!!!!, You're right, I was just making a simple Java mistake and blaming the AOP introduction's
I got it to pass that error message changing the handleEncuentraVacantes method (posted before)
Instead of doing this:
List vacantes = getVacanteDao().encuentraConCriterios(criteria);
doing this:
List vacantes = ((com.mitalteli.bolsaDeTrabajo.useCaseSlices.specific.consultarVacantes.IAspectoVacanteDao) getVacanteDao()).encuentraConCriterios(criteria);
A simple cast.
Of course I had to add an include to the Introduction Interface:
import com.mitalteli.bolsaDeTrabajo.useCaseSlices.specific.consultarVacantes.IAspectoVacanteDao;
Is that right? That's what I had to do?
I have to fix a loooot of other errors, but, I hope I manage to get through all them too. Even if I'm not that experienced with Java programming.
THANK YOU VERY, VERY, VERY MUCH.
Ely.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4148910#4148910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4148910
16 years, 4 months