WSDL2JAVA Test not valid - generating code that is not checked
--------------------------------------------------------------
Key: TUSCANY-1962
URL: https://issues.apache.org/jira/browse/TUSCANY-1962
Project: Tuscany
Issue Type: Bug
Components: Java SCA Tools
Affects Versions: Java-SCA-1.1
Environment: All
Reporter: Mike Edwards
Priority: Minor
Fix For: Java-SCA-Next
The WSDL2Java tools has a testcase WSDL2JavaGeneratorTestcase that is an
invalid testcase.
This testcase runs the WSDL2Java tool and generates some output Java classes
based on an input WSDL document. The files get placed into the
target/wsdl2java-source directory. The current testcase only generates these
files - it does not check that their contents are meaningful or correct. In
reality, the generated code has problems:
a) The code refers to SDO classes that are not generated by the testcase and
which are not available in any obvious location. As a result the code does not
compile.
b) The generated code does not have import statements for the SDO classes that
are used. Instead, the classes are used with full paths on each declaration.
At the very least this is unacceptable style and it should be changed.
There is no attempt in the test to check that the generated code conforms to
some expected output. The test MUST be extended to do this if it is to be of
any real value.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]