KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > selectivefilegen > IncludeServiceTestCase


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 //File: AntTestCase.java
17
package test.wsdl.selectivefilegen;
18
19 import java.io.File JavaDoc;
20 import java.util.HashSet JavaDoc;
21 import java.util.Set JavaDoc;
22
23 import test.wsdl.filegen.FileGenTestCase;
24
25 /**
26  * This test verifies that only the classes for the included service
27  * namespace were generated.
28  
29     @author Jim Stafford jim.stafford@raba.com
30 */

31 public class IncludeServiceTestCase extends FileGenTestCase {
32
33     /**
34      * List of files which should be generated.
35      */

36     protected Set JavaDoc shouldExist() {
37         HashSet JavaDoc set = new HashSet JavaDoc();
38         //not included - set.add(bean1Dir + File.separator + "Bean1.java");
39
//not included - set.add(bean2Dir + File.separator + "Bean2.java");
40
set.add("Reporter.java");
41         set.add("ReporterSoapBindingImpl.java");
42         set.add("ReporterSoapBindingStub.java");
43         set.add("ReporterSoapBindingSkeleton.java");
44         set.add("deploy.wsdd");
45         set.add("undeploy.wsdd");
46         return set;
47     }
48
49     protected String JavaDoc rootDir() {
50         return "build" + File.separator + "work" + File.separator +
51                 "test" + File.separator + "wsdl" + File.separator +
52                 "selectivefilegen" + File.separator +
53                 "includedsvc";
54     }
55
56     public IncludeServiceTestCase(String JavaDoc name) {
57         super(name);
58     }
59 }
60
Popular Tags