KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > header > VerifyFilesTestCase


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.header;
22
23 import test.wsdl.filegen.FileGenTestCase;
24
25 import java.io.File JavaDoc;
26 import java.util.HashSet JavaDoc;
27 import java.util.Set JavaDoc;
28
29 public class VerifyFilesTestCase extends FileGenTestCase {
30     public VerifyFilesTestCase(String JavaDoc name) {
31         super(name);
32     }
33
34     /**
35      * List of files which should be generated. We're primarily concerned with
36      * the implicit fault class.
37      */

38     protected Set JavaDoc shouldExist() {
39         HashSet JavaDoc set = new HashSet JavaDoc();
40
41         set.add("BindingImpl.java");
42         set.add("BindingSkeleton.java");
43         set.add("BindingStub.java");
44         set.add("HeaderService.java");
45         set.add("HeaderServiceLocator.java");
46         set.add("HeaderServiceTestCase.java");
47         set.add("HeaderType.java");
48         set.add("ImplicitFault.java");
49         set.add("Op1Fault.java");
50         set.add("PortType.java");
51         set.add("VerifyFilesTestCase.java");
52         set.add("deploy.wsdd");
53         set.add("undeploy.wsdd");
54         return set;
55     } // shouldExist
56

57     /**
58     /**
59      * The directory containing the files that should exist.
60      */

61     protected String JavaDoc rootDir() {
62         return "build" + File.separator + "work" + File.separator +
63                 "test" + File.separator + "wsdl" + File.separator +
64                 "header";
65     } // rootDir
66

67 } // class VerifyFilesTestCase
68
Popular Tags