KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > clash > 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.clash;
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.
36      */

37     protected Set JavaDoc shouldExist() {
38         HashSet JavaDoc set = new HashSet JavaDoc();
39         set.add("AnotherNonSharedNameImpl.java");
40         set.add("AnotherNonSharedNameStub.java");
41         set.add("DescribeLayoutType0.java");
42         set.add("DescribeLayout.java");
43         set.add("NonSharedNameImpl.java");
44         set.add("NonSharedNameStub.java");
45         set.add("SayHello.java");
46         set.add("SharedName_PortType.java");
47         set.add("SharedName_Service.java");
48         set.add("SharedName_ServiceLocator.java");
49         set.add("SharedName_ServiceTestCase.java");
50         set.add("SharedName_Type.java");
51         set.add("VerifyFilesTestCase.java");
52         set.add("deploy.wsdd");
53         set.add("undeploy.wsdd");
54         return set;
55     } // shouldExist
56

57     /**
58      * List of files which may be generated.
59      */

60     protected Set JavaDoc mayExist() {
61         HashSet JavaDoc set = new HashSet JavaDoc();
62         set.add("SharedName_Type_Helper.java");
63         return set;
64     } // shouldExist
65

66     /**
67      * The directory containing the files that should exist.
68      */

69     protected String JavaDoc rootDir() {
70         return "build" + File.separator + "work" + File.separator +
71                 "test" + File.separator + "wsdl" + File.separator +
72                 "clash";
73     } // rootDir
74

75 } // class VerifyFilesTestCase
76
Popular Tags