KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > multibinding > 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.multibinding;
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("BindingAllLitImpl.java");
40         set.add("BindingAllLitSkeleton.java");
41         set.add("BindingAllLitStub.java");
42         set.add("BindingNoLitImpl.java");
43         set.add("BindingNoLitSkeleton.java");
44         set.add("BindingNoLitStub.java");
45         set.add("BindingSomeLitImpl.java");
46         set.add("BindingSomeLitSkeleton.java");
47         set.add("BindingSomeLitStub.java");
48         set.add("MbPT.java");
49         set.add("MbService.java");
50         set.add("MbServiceLocator.java");
51         set.add("MbServiceTestCase.java");
52         set.add("VerifyFilesTestCase.java");
53         set.add("deploy.wsdd");
54         set.add("undeploy.wsdd");
55         return set;
56     } // shouldExist
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                 "multibinding";
65     } // rootDir
66

67 } // class VerifyFilesTestCase
68
Popular Tags