Debian Codegraph @

test/wsdl/query/FileGenWrappedTestCase.java

raw
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;
22 import java.util.HashSet;
23 import java.util.Set;
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 ([email protected])
30 */
31 public class FileGenWrappedTestCase extends AxisFileGenTestBase {
32 public FileGenWrappedTestCase(String name) {
33 super(name);
34 }
35
36 /**
37 * List of files which should be generated.
38 */
39 protected Set shouldExist() {
40 HashSet set = new HashSet();
41 set.add("QueryBean.java");
42 set.add("QueryTest.java");
43 set.add("QueryTestSoapBindingImpl.java");
44 set.add("QueryTestSoapBindingStub.java");
45 set.add("QueryTestService.java");
46 set.add("QueryTestServiceLocator.java");
47 set.add("QueryTestServiceTestCase.java");
48 set.add("FileGenWrappedTestCase.java");
49 set.add("QueryTest.wsdl");
50 set.add("deploy.wsdd");
51 set.add("undeploy.wsdd");
52 return set;
53 } // shouldExist
54
55 /**
56 * List of files which may be generated.
57 */
58 protected Set mayExist() {
59 HashSet set = new HashSet();
60 // none
61 return set;
62 } // shouldExist
63
64 /**
65 * The directory containing the files that should exist.
66 */
67 protected String rootDir() {
68 return "build" + File.separator + "work" + File.separator +
69 "test" + File.separator + "wsdl" + File.separator +
70 "query";
71 } // rootDir
72
73 }
74