Debian Codegraph @

test/wsdl/filegen/FileGenTestCase.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 /**
18 * This tests the file generation of only the items that are referenced in WSDL
19 *
20 * @author Tom Jordahl ([email protected])
21 */
22 package test.wsdl.filegen;
23
24 import test.AxisFileGenTestBase;
25
26 import java.io.File;
27 import java.io.IOException;
28 import java.util.Arrays;
29 import java.util.HashSet;
30 import java.util.Set;
31 import java.util.Vector;
32
33
34 public class FileGenTestCase extends AxisFileGenTestBase {
35 public FileGenTestCase(String name) {
36 super(name);
37 }
38
39
40 /**
41 * List of files which should be generated.
42 */
43 protected Set shouldExist() {
44 HashSet set = new HashSet();
45 set.add("AllOptionTestCase.java");
46 set.add("FileGenTestCase.java");
47 set.add("OpFault.java");
48 set.add("PortTypeSoap.java");
49 set.add("ReferenceService.java");
50 set.add("ReferenceServiceLocator.java");
51 set.add("ReferenceSoapBindingStub.java");
52 return set;
53 }
54
55 /**
56 * List of files which may or may not be generated.
57 */
58 protected Set mayExist() {
59 HashSet set = new HashSet();
60 return set;
61 }
62
63 /**
64 * The directory containing the files that should exist.
65 */
66 protected String rootDir() {
67 return "build" + File.separator + "work" + File.separator +
68 "test" + File.separator + "wsdl" + File.separator +
69 "filegen";
70 }
71
72 }
73