KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > query > FileGenWrappedTestCase


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 package test.wsdl.query;
18
19 import test.AxisFileGenTestBase;
20
21 import java.io.File JavaDoc;
22 import java.util.HashSet JavaDoc;
23 import java.util.Set JavaDoc;
24
25 /**
26  * This tests to make sure the wrapper element types for a wrapped
27  * document/literal service are not generated by WSDL2Java.
28  *
29  * @author Tom Jordahl (tomj@macromedia.com)
30  */

31 public class FileGenWrappedTestCase extends AxisFileGenTestBase {
32     public FileGenWrappedTestCase(String JavaDoc name) {
33         super(name);
34     }
35
36     /**
37      * List of files which should be generated.
38      */

39     protected Set JavaDoc shouldExist() {
40         HashSet JavaDoc set = new HashSet JavaDoc();
41         set.add("QueryBean.java");
42         set.add("QueryTest.java");
43         set.add("QueryTestBindingImpl.java");
44         set.add("QueryTestBindingStub.java");
45         set.add("QueryTestService.java");
46         set.add("QueryTestServiceLocator.java");
47         set.add("QueryTestServiceTestCase.java");
48         set.add("FileGenWrappedTestCase.java");
49         set.add("deploy.wsdd");
50         set.add("undeploy.wsdd");
51         return set;
52     } // shouldExist
53

54     /**
55      * List of files which may be generated.
56      */

57     protected Set JavaDoc mayExist() {
58         HashSet JavaDoc set = new HashSet JavaDoc();
59         // none
60
return set;
61     } // shouldExist
62

63     /**
64      * The directory containing the files that should exist.
65      */

66     protected String JavaDoc rootDir() {
67         return "build" + File.separator + "work" + File.separator +
68                 "test" + File.separator + "wsdl" + File.separator +
69                 "query";
70     } // rootDir
71

72 }
73
74
Popular Tags