KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > filegen > AllOptionTestCase


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 /**
18  * This tests the file generation of only the items that are referenced in WSDL
19  *
20  */

21 package test.wsdl.filegen;
22
23 import java.io.File JavaDoc;
24 import java.util.HashSet JavaDoc;
25 import java.util.Set JavaDoc;
26
27 public class AllOptionTestCase extends FileGenTestCase {
28     public AllOptionTestCase(String JavaDoc name) {
29         super(name);
30     }
31
32     /**
33      * List of files which should be generated.
34      */

35     protected Set JavaDoc shouldExist() {
36         HashSet JavaDoc set = new HashSet JavaDoc();
37         set.add("Address.java");
38         set.add("OpFault.java");
39         set.add("PortTypeSoap.java");
40         set.add("ReferenceService.java");
41         set.add("ReferenceServiceLocator.java");
42         set.add("ReferenceSoapBindingStub.java");
43         set.add("StateType.java");
44         return set;
45     } // shouldExist
46

47     /**
48      * The directory containing the files that should exist.
49      */

50     protected String JavaDoc rootDir() {
51         return "build" + File.separator + "work" + File.separator +
52                 "test" + File.separator + "wsdl" + File.separator +
53                 "filegenAll";
54     } // rootDir
55

56 } // class AllOptionTestCase
57
Popular Tags