Debian Codegraph @

test/wsdl/inheritance/README.txt

raw
1 This directory tests Java2WSDL generation with inheritance.
2
3 Here are the steps executed in the WSDL test suite to perform
4 the Java2WSDL inheritance test.
5
6 1. WSDL2Java is executed on the InheritanceTest.wsdl in this (the source)
7 directory. This generates some Java files we will need in the build working
8 directory.
9
10 2. InheritancePortType.java is replaced with the version from this directory.
11 The local version extends the StockQuoteProvider interface in
12 StockQuoteProvider.java, which is also copied over to the build working
13 directory.
14
15 3. The Java files in the working directory are compiled so that Java2WSDL will
16 have class files to use.
17
18 4. Java2WSDL is run against the InheritancePortType class. The --all switch is
19 used to include inherited methods in the WSDL. The output is sent to
20 InheritanceTest.wsdl in the build working directory.
21
22 5. The class directory created in step 3 is deleted, so we start with a clean
23 slate.
24
25 6. WSDL2Java is run against the generated WSDL file, and the resulting Java file
26 are treated 'as normal' in the WSDL test suite; i.e. any Impl and TestCase files
27 are copied from the source tree, the service and client are compiled and the
28 test invocation of the operations are executed.
29
30 Here are the addtional steps performed to set up execution of the StopExclude
31 test. This test verifies the behavior of the --stopClasses and --exclude
32 options.
33
34 1. The test files, Parent, Child, Baby, Parent_bean, Child_bean, and Baby_bean
35 are compiled to the build classes directory.
36
37 2. Java2WSDL is executed on the Baby class and the StopExclude.wsdl file is
38 generated in the build working directory.
39
40 3. The test case testStopExclude in the InheritanceTestCase class manually
41 verifies the XML in the types element of the WSDL and WSDL4J is used to
42 verify the operation names in the portType of the WSDL.
43
44
45 Tom Jordahl
46 Febuary 5, 2002
47 Note: I did not create the first test, but I did create the second StopExclude
48 test.