| 1 |
FileGenTestCase verifies that the proper set of files is generated for FileGen.wsdl. This is a test that would be useful for many WSDL files, so FileGenTestCase is also extensible. |
| 2 |
|
| 3 |
Here is the interface for FileGenTestCase: |
| 4 |
|
| 5 |
FileGenTestCase { |
| 6 |
public FileGenTestCase(java.lang.String); |
| 7 |
protected java.util.Set shouldExist(); |
| 8 |
protected java.lang.String rootDir(); |
| 9 |
public void testFileGen() throws java.io.IOException; |
| 10 |
} |
| 11 |
|
| 12 |
All extensions should have a constructor that takes a String and calls super(string). This is a requirement of the junit framework. |
| 13 |
|
| 14 |
All extensions should override shouldExist. This method returns a set containing the String local names of the files that should exist in a given directory. |
| 15 |
|
| 16 |
All extensions should override rootDir. This method returns the name of the directory which will be checked for file existence. |
| 17 |
|
| 18 |
testFileGen is the test that does all the work and extensions do not need to override it. |
| 19 |
|
| 20 |
For a concrete example of an extension to FileGenTestCase, see xml-axis/java/test/wsdl/clash/VerifyFilesTestCase.java. |
| 21 |
|