-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE in CamelContextGenerator.getJavaMethod(CamelContextGenerator.java:117) #66
Comments
the issue occurs when a port type contains an "_" |
Signed-off-by: Aurélien Pupier <apupier@redhat.com>
Signed-off-by: Aurélien Pupier <apupier@redhat.com>
Fixes merged |
I provided a PR which is avoiding the NPE and testing the same things than other tests but I have no idea if the generated code is really working or not (and don't know how to check that for now) |
Sorry I missed the new PR |
@tdiesler what needs to be checked on the generated code? how to test that the generated code is correct the wsdl/camel rest dsl? |
I'd say it works in the context of its test coverage. If a functionality is auto tested we claim that it works. If it is not tested we assume that it is not there. |
is the test that I've written accurate? I duplicate the other tests, but does it makes sense in the context of name with underscores? How to know if it is the right way to handle it? |
Here is an example of a comprehensive functional test
https://github.com/jboss-fuse/wsdl2rest/blob/master/tests/spring/src/test/java/org/jboss/fuse/wsdl2rest/test/rpclit/CamelRestRpcLitTest.java <https://github.com/jboss-fuse/wsdl2rest/blob/master/tests/spring/src/test/java/org/jboss/fuse/wsdl2rest/test/rpclit/CamelRestRpcLitTest.java>
There is one for rpc/lit and one for doc/lit.
You could check whether the generated camel route works for your stuff
— thomas
… On Oct 17, 2018, at 2:44 PM, Aurélien Pupier ***@***.***> wrote:
is the test that I've written accurate? I duplicate the other tests, but does it makes sense in the context of name with underscores? How to know if it is the right way to handle it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#66 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAO80h1DFpw7fJbalkwy5MN9z5A561MCks5ulyZCgaJpZM4XH_KR>.
|
I still don't know if java code is well generated but camel dsl file is for sure badly generated:
|
names jboss-fuse#66 - improved test to check for it - support underscores in names Signed-off-by: Aurélien Pupier <apupier@redhat.com>
unassigned: time allocated to work on it exploded. |
Signed-off-by: Aurélien Pupier <apupier@redhat.com>
wsdl file available on case support https://access.redhat.com/support/cases/#/case/02193740
The text was updated successfully, but these errors were encountered: