Debian Codegraph @

test/wsdl/selectivefilegen/CmdLineIncludeTestCase.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 package test.wsdl.selectivefilegen;
17
18 import java.io.File;
19 import java.util.HashSet;
20 import java.util.Set;
21
22 import test.wsdl.filegen.FileGenTestCase;
23
24 /**
25 * This test verifies the cmd line interface to the selective file
26 * generation. This test is similar to the includes test, in that it names
27 * two namespaces to be generated, which causes only the bean classes to be
28 * generated.
29
30 @author Jim Stafford [email protected]
31 */
32 public class CmdLineIncludeTestCase extends FileGenTestCase {
33
34 /**
35 * List of files which should be generated.
36 */
37 protected Set shouldExist() {
38 HashSet set = new HashSet();
39
40 set.add("Bean1.java");
41 set.add("Bean2.java");
42 /* not included -
43 set.add(servicesDir + File.separator + "Reporter.java");
44 set.add(servicesDir + File.separator + "ReporterSoapBindingImpl.java");
45 set.add(servicesDir + File.separator + "ReporterSoapBindingStub.java");
46 set.add(servicesDir + File.separator + "ReporterSoapBindingSkeleton.java");
47 set.add(servicesDir + File.separator + "deploy.wsdd");
48 set.add(servicesDir + File.separator + "undeploy.wsdd");
49 */
50 return set;
51 }
52
53 protected String rootDir() {
54 return "build" + File.separator + "work" + File.separator +
55 "test" + File.separator + "wsdl" + File.separator +
56 "selectivefilegen" + File.separator +
57 "cmdlinei";
58 }
59
60 public CmdLineIncludeTestCase(String name) {
61 super(name);
62 }
63 }