Use a Maven plugin instead of Java code to test presence of generated files.
diff --git a/axis-ant/pom.xml b/axis-ant/pom.xml
index f2547e3..02f4392 100644
--- a/axis-ant/pom.xml
+++ b/axis-ant/pom.xml
@@ -149,6 +149,144 @@
</excludes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>com.github.veithen.filecheck</groupId>
+ <artifactId>filecheck-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>check-multiple</goal>
+ </goals>
+ <configuration>
+ <fileSets>
+ <fileSet>
+ <directory>${project.build.directory}/work/test/wsdl/axis2900</directory>
+ <expectedFiles>
+ <expectedFile>Exception.java</expectedFile>
+ <expectedFile>MyWS.java</expectedFile>
+ <expectedFile>MyWSException.java</expectedFile>
+ <expectedFile>MyWSLocator.java</expectedFile>
+ <expectedFile>MyWSPortType.java</expectedFile>
+ <expectedFile>MyWSSoap11BindingStub.java</expectedFile>
+ </expectedFiles>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/work/test/wsdl/clash</directory>
+ <expectedFiles>
+ <expectedFile>AnotherNonSharedNameImpl.java</expectedFile>
+ <expectedFile>AnotherNonSharedNameStub.java</expectedFile>
+ <expectedFile>DescribeLayoutType0.java</expectedFile>
+ <expectedFile>DescribeLayout.java</expectedFile>
+ <expectedFile>NonSharedNameImpl.java</expectedFile>
+ <expectedFile>NonSharedNameStub.java</expectedFile>
+ <expectedFile>SayHello.java</expectedFile>
+ <expectedFile>SharedName_PortType.java</expectedFile>
+ <expectedFile>SharedName_Service.java</expectedFile>
+ <expectedFile>SharedName_ServiceLocator.java</expectedFile>
+ <expectedFile>SharedName_ServiceTestCase.java</expectedFile>
+ <expectedFile>SharedName_Type.java</expectedFile>
+ <expectedFile>deploy.wsdd</expectedFile>
+ <expectedFile>undeploy.wsdd</expectedFile>
+ </expectedFiles>
+ <allowedFiles>
+ <allowedFile>SharedName_Type_Helper.java</allowedFile>
+ </allowedFiles>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/work/test/wsdl/extra</directory>
+ <expectedFiles>
+ <expectedFile>Extra.java</expectedFile> <!-- this is the important one -->
+ <expectedFile>MyService.java</expectedFile>
+ <expectedFile>MyServiceService.java</expectedFile>
+ <expectedFile>MyServiceServiceLocator.java</expectedFile>
+ <expectedFile>MyServiceSoapBindingStub.java</expectedFile>
+ <expectedFile>MyService.wsdl</expectedFile>
+ </expectedFiles>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/work/test/wsdl/filegenAll</directory>
+ <expectedFiles>
+ <expectedFile>Address.java</expectedFile>
+ <expectedFile>OpFault.java</expectedFile>
+ <expectedFile>PortTypeSoap.java</expectedFile>
+ <expectedFile>ReferenceService.java</expectedFile>
+ <expectedFile>ReferenceServiceLocator.java</expectedFile>
+ <expectedFile>ReferenceSoapBindingStub.java</expectedFile>
+ <expectedFile>StateType.java</expectedFile>
+ </expectedFiles>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/work/test/wsdl/filegen</directory>
+ <expectedFiles>
+ <expectedFile>OpFault.java</expectedFile>
+ <expectedFile>PortTypeSoap.java</expectedFile>
+ <expectedFile>ReferenceService.java</expectedFile>
+ <expectedFile>ReferenceServiceLocator.java</expectedFile>
+ <expectedFile>ReferenceSoapBindingStub.java</expectedFile>
+ </expectedFiles>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/work/test/wsdl/groups</directory>
+ <expectedFiles>
+ <expectedFile>SomeType.java</expectedFile>
+ </expectedFiles>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/work/test/wsdl/header</directory>
+ <expectedFiles>
+ <expectedFile>BindingImpl.java</expectedFile>
+ <expectedFile>BindingSkeleton.java</expectedFile>
+ <expectedFile>BindingStub.java</expectedFile>
+ <expectedFile>HeaderService.java</expectedFile>
+ <expectedFile>HeaderServiceLocator.java</expectedFile>
+ <expectedFile>HeaderServiceTestCase.java</expectedFile>
+ <expectedFile>HeaderType.java</expectedFile>
+ <expectedFile>ImplicitFault.java</expectedFile>
+ <expectedFile>Op1Fault.java</expectedFile>
+ <expectedFile>PortType.java</expectedFile>
+ <expectedFile>deploy.wsdd</expectedFile>
+ <expectedFile>undeploy.wsdd</expectedFile>
+ </expectedFiles>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/work/test/wsdl/literal</directory>
+ <expectedFiles>
+ <expectedFile>SalesRankNPrice1.java</expectedFile>
+ <expectedFile>SalesRanks.java</expectedFile>
+ <expectedFile>Prices.java</expectedFile>
+ <expectedFile>All.java</expectedFile>
+ <expectedFile>SalesRankNPriceSoap.java</expectedFile>
+ <expectedFile>SalesRankNPriceSoapStub.java</expectedFile>
+ <expectedFile>SalesRankNPrice.java</expectedFile>
+ <expectedFile>SalesRankNPriceLocator.java</expectedFile>
+ </expectedFiles>
+ </fileSet>
+ <fileSet>
+ <directory>${project.build.directory}/work/test/wsdl/multibinding</directory>
+ <expectedFiles>
+ <expectedFile>BindingAllLitImpl.java</expectedFile>
+ <expectedFile>BindingAllLitSkeleton.java</expectedFile>
+ <expectedFile>BindingAllLitStub.java</expectedFile>
+ <expectedFile>BindingNoLitImpl.java</expectedFile>
+ <expectedFile>BindingNoLitSkeleton.java</expectedFile>
+ <expectedFile>BindingNoLitStub.java</expectedFile>
+ <expectedFile>BindingSomeLitImpl.java</expectedFile>
+ <expectedFile>BindingSomeLitSkeleton.java</expectedFile>
+ <expectedFile>BindingSomeLitStub.java</expectedFile>
+ <expectedFile>MbPT.java</expectedFile>
+ <expectedFile>MbService.java</expectedFile>
+ <expectedFile>MbServiceLocator.java</expectedFile>
+ <expectedFile>MbServiceTestCase.java</expectedFile>
+ <expectedFile>deploy.wsdd</expectedFile>
+ <expectedFile>undeploy.wsdd</expectedFile>
+ </expectedFiles>
+ </fileSet>
+ </fileSets>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
diff --git a/axis-ant/src/test/java/test/wsdl/axis2900/VerifyFilesTestCase.java b/axis-ant/src/test/java/test/wsdl/axis2900/VerifyFilesTestCase.java
deleted file mode 100644
index 8249840..0000000
--- a/axis-ant/src/test/java/test/wsdl/axis2900/VerifyFilesTestCase.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package test.wsdl.axis2900;
-
-import test.AxisFileGenTestBase;
-
-import java.io.File;
-import java.util.HashSet;
-import java.util.Set;
-
-public class VerifyFilesTestCase extends AxisFileGenTestBase {
- public VerifyFilesTestCase(String name) {
- super(name);
- }
-
- /**
- * List of files which should be generated.
- */
- protected Set shouldExist() {
- HashSet set = new HashSet();
- set.add("Exception.java");
- set.add("MyWS.java");
- set.add("MyWSException.java");
- set.add("MyWSLocator.java");
- set.add("MyWSPortType.java");
- set.add("MyWSSoap11BindingStub.java");
- return set;
- } // shouldExist
-
- /**
- * List of files which may be generated.
- */
- protected Set mayExist() {
- HashSet set = new HashSet();
- return set;
- } // shouldExist
-
- /**
- * The directory containing the files that should exist.
- */
- protected String rootDir() {
- return "target" + File.separator + "work" + File.separator +
- "test" + File.separator + "wsdl" + File.separator +
- "axis2900";
- } // rootDir
-
-} // class VerifyFilesTestCase
diff --git a/axis-ant/src/test/java/test/wsdl/clash/VerifyFilesTestCase.java b/axis-ant/src/test/java/test/wsdl/clash/VerifyFilesTestCase.java
deleted file mode 100644
index 7e513ef..0000000
--- a/axis-ant/src/test/java/test/wsdl/clash/VerifyFilesTestCase.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * This tests the file generation of only the items that are referenced in WSDL
- *
- */
-package test.wsdl.clash;
-
-import test.AxisFileGenTestBase;
-
-import java.io.File;
-import java.util.HashSet;
-import java.util.Set;
-
-public class VerifyFilesTestCase extends AxisFileGenTestBase {
- public VerifyFilesTestCase(String name) {
- super(name);
- }
-
- /**
- * List of files which should be generated.
- */
- protected Set shouldExist() {
- HashSet set = new HashSet();
- set.add("AnotherNonSharedNameImpl.java");
- set.add("AnotherNonSharedNameStub.java");
- set.add("DescribeLayoutType0.java");
- set.add("DescribeLayout.java");
- set.add("NonSharedNameImpl.java");
- set.add("NonSharedNameStub.java");
- set.add("SayHello.java");
- set.add("SharedName_PortType.java");
- set.add("SharedName_Service.java");
- set.add("SharedName_ServiceLocator.java");
- set.add("SharedName_ServiceTestCase.java");
- set.add("SharedName_Type.java");
- set.add("deploy.wsdd");
- set.add("undeploy.wsdd");
- return set;
- } // shouldExist
-
- /**
- * List of files which may be generated.
- */
- protected Set mayExist() {
- HashSet set = new HashSet();
- set.add("SharedName_Type_Helper.java");
- return set;
- } // shouldExist
-
- /**
- * The directory containing the files that should exist.
- */
- protected String rootDir() {
- return "target" + File.separator + "work" + File.separator +
- "test" + File.separator + "wsdl" + File.separator +
- "clash";
- } // rootDir
-
-} // class VerifyFilesTestCase
diff --git a/axis-ant/src/test/java/test/wsdl/extra/ExtraClassesTestCase.java b/axis-ant/src/test/java/test/wsdl/extra/ExtraClassesTestCase.java
deleted file mode 100644
index d4afa27..0000000
--- a/axis-ant/src/test/java/test/wsdl/extra/ExtraClassesTestCase.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package test.wsdl.extra;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.Set;
-import java.util.Vector;
-
-/**
- * This tests the file generation of only the items that are referenced in WSDL
- * This should extend FileGenTestCase, but we have a dependancy problem as
- * "extra" comes before "filegen". Oh well.
- *
- */
-public class ExtraClassesTestCase extends junit.framework.TestCase {
- public ExtraClassesTestCase(String name) {
- super(name);
- }
-
- /**
- * List of files which should be generated.
- */
- protected Set shouldExist() {
- HashSet set = new HashSet();
- set.add("Extra.java"); // this is the important one
- set.add("MyService.java");
- set.add("MyServiceService.java");
- set.add("MyServiceServiceLocator.java");
- set.add("MyServiceSoapBindingStub.java");
- set.add("MyService.wsdl");
- return set;
- } // shouldExist
-
- /**
- * List of files which may or may not be generated.
- */
- protected Set mayExist() {
- HashSet set = new HashSet();
- return set;
- }
-
- /**
- * The directory containing the files that should exist.
- */
- protected String rootDir() {
- return "target" + File.separator + "work" + File.separator +
- "test" + File.separator + "wsdl" + File.separator +
- "extra";
- } // rootDir
-
- public void testFileGen() throws IOException {
- String rootDir = rootDir();
- Set shouldExist = shouldExist();
- Set mayExist = mayExist();
-
- // open up the output directory and check what files exist.
- File outputDir = new File(rootDir);
-
- String[] files = outputDir.list();
-
- Vector shouldNotExist = new Vector();
-
- for (int i = 0; i < files.length; ++i) {
- if (shouldExist.contains(files[i])) {
- shouldExist.remove(files[i]);
- }
- else if (mayExist.contains(files[i])) {
- mayExist.remove(files[i]);
- }
- else {
- shouldNotExist.add(files[i]);
- }
- }
-
- if (shouldExist.size() > 0) {
- fail("The following files should exist but do not: " + shouldExist);
- }
-
- if (shouldNotExist.size() > 0) {
- fail("The following files should NOT exist, but do: " + shouldNotExist);
- }
- }
-} // class AllOptionTestCase
diff --git a/axis-ant/src/test/java/test/wsdl/filegen/AllOptionTestCase.java b/axis-ant/src/test/java/test/wsdl/filegen/AllOptionTestCase.java
deleted file mode 100644
index 705b84b..0000000
--- a/axis-ant/src/test/java/test/wsdl/filegen/AllOptionTestCase.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * This tests the file generation of only the items that are referenced in WSDL
- *
- */
-package test.wsdl.filegen;
-
-import java.io.File;
-import java.util.HashSet;
-import java.util.Set;
-
-import test.AxisFileGenTestBase;
-
-public class AllOptionTestCase extends AxisFileGenTestBase {
- public AllOptionTestCase(String name) {
- super(name);
- }
-
- /**
- * List of files which should be generated.
- */
- protected Set shouldExist() {
- HashSet set = new HashSet();
- set.add("Address.java");
- set.add("OpFault.java");
- set.add("PortTypeSoap.java");
- set.add("ReferenceService.java");
- set.add("ReferenceServiceLocator.java");
- set.add("ReferenceSoapBindingStub.java");
- set.add("StateType.java");
- return set;
- } // shouldExist
-
- /**
- * The directory containing the files that should exist.
- */
- protected String rootDir() {
- return "target" + File.separator + "work" + File.separator +
- "test" + File.separator + "wsdl" + File.separator +
- "filegenAll";
- } // rootDir
-
-} // class AllOptionTestCase
diff --git a/axis-ant/src/test/java/test/wsdl/filegen/FileGenTestCase.java b/axis-ant/src/test/java/test/wsdl/filegen/FileGenTestCase.java
deleted file mode 100644
index aa48845..0000000
--- a/axis-ant/src/test/java/test/wsdl/filegen/FileGenTestCase.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * This tests the file generation of only the items that are referenced in WSDL
- *
- * @author Tom Jordahl (tomj@macromedia.com)
- */
-package test.wsdl.filegen;
-
-import test.AxisFileGenTestBase;
-
-import java.io.File;
-import java.util.HashSet;
-import java.util.Set;
-
-public class FileGenTestCase extends AxisFileGenTestBase {
- public FileGenTestCase(String name) {
- super(name);
- }
-
-
- /**
- * List of files which should be generated.
- */
- protected Set shouldExist() {
- HashSet set = new HashSet();
- set.add("OpFault.java");
- set.add("PortTypeSoap.java");
- set.add("ReferenceService.java");
- set.add("ReferenceServiceLocator.java");
- set.add("ReferenceSoapBindingStub.java");
- return set;
- }
-
- /**
- * The directory containing the files that should exist.
- */
- protected String rootDir() {
- return "target" + File.separator + "work" + File.separator +
- "test" + File.separator + "wsdl" + File.separator +
- "filegen";
- }
-
-}
-
diff --git a/axis-ant/src/test/java/test/wsdl/filegen/README b/axis-ant/src/test/java/test/wsdl/filegen/README
deleted file mode 100644
index cc06f0d..0000000
--- a/axis-ant/src/test/java/test/wsdl/filegen/README
+++ /dev/null
@@ -1,21 +0,0 @@
-FileGenTestCase verifies that the proper set of files is generated for FileGen.wsdl. This is a test that would be useful for many WSDL files, so FileGenTestCase is also extensible.
-
-Here is the interface for FileGenTestCase:
-
-FileGenTestCase {
- public FileGenTestCase(java.lang.String);
- protected java.util.Set shouldExist();
- protected java.lang.String rootDir();
- public void testFileGen() throws java.io.IOException;
-}
-
-All extensions should have a constructor that takes a String and calls super(string). This is a requirement of the junit framework.
-
-All extensions should override shouldExist. This method returns a set containing the String local names of the files that should exist in a given directory.
-
-All extensions should override rootDir. This method returns the name of the directory which will be checked for file existence.
-
-testFileGen is the test that does all the work and extensions do not need to override it.
-
-For a concrete example of an extension to FileGenTestCase, see xml-axis/java/test/wsdl/clash/VerifyFilesTestCase.java.
-
diff --git a/axis-ant/src/test/java/test/wsdl/groups/GroupsTestCase.java b/axis-ant/src/test/java/test/wsdl/groups/GroupsTestCase.java
index adfcb75..a556338 100644
--- a/axis-ant/src/test/java/test/wsdl/groups/GroupsTestCase.java
+++ b/axis-ant/src/test/java/test/wsdl/groups/GroupsTestCase.java
@@ -21,111 +21,14 @@
*/
package test.wsdl.groups;
-import java.io.File;
import java.io.IOException;
-import java.lang.reflect.Method;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
public class GroupsTestCase extends junit.framework.TestCase {
public GroupsTestCase(String name) {
super(name);
}
- /**
- * List of files which should be generated.
- */
- protected Set shouldExist() {
- HashSet set = new HashSet();
- set.add("SomeType.java");
- return set;
- }
-
- /**
- * List of files which may or may not be generated.
- */
- protected Set shouldNotExist() {
- HashSet set = new HashSet();
- set.add("SomeGroup.java");
- return set;
- }
-
- /**
- * The directory containing the files that should exist.
- */
- protected String rootDir() {
- return "target" + File.separator + "work" + File.separator +
- "test" + File.separator + "wsdl" + File.separator +
- "groups";
- }
-
- protected String getPrefix(String parent) {
- if (parent == null || parent.length() == 0) {
- return "";
- }
- else {
- return parent + File.separator;
- }
- }
-
- /** This method returns a array of String file paths, located within the
- * supplied root directory. The string values are created relative to the
- * specified parent so that the names get returned in the form of
- * "file.java", "dir/file.java", "dir/dir/file.java", etc. This feature
- * asslows the various file specs to include files in sub-directories as
- * well as the root directory.
- */
- protected String[] getPaths(File root, String parent) {
- File files[] = root.listFiles();
- if (files == null)
- fail("Unable to get a list of files from " + root.getPath());
-
- Set filePaths = new HashSet();
- for(int i=0; i<files.length; i++) {
- if (files[i].isDirectory()) {
- String children[] = getPaths(files[i],
- getPrefix(parent) + files[i].getName());
- filePaths.addAll(Arrays.asList(children));
- }
- else {
- filePaths.add(getPrefix(parent) + files[i].getName());
- }
- }
- String paths[] = new String[filePaths.size()];
- return (String[]) filePaths.toArray(paths);
- }
-
-
public void testGroups() throws IOException, ClassNotFoundException, SecurityException, NoSuchMethodException {
-
- // Test for the proper files
-
- String rootDir = rootDir();
- Set shouldExist = shouldExist();
- Set shouldNotExist = shouldNotExist();
-
- // open up the output directory and check what files exist.
- File outputDir = new File(rootDir);
-
- String[] files = getPaths(outputDir, null);
-
- for (int i = 0; i < files.length; ++i) {
- if (shouldExist.contains(files[i])) {
- shouldExist.remove(files[i]);
- }
- else if (shouldNotExist.contains(files[i])) {
- fail("The following file should not exist in " + rootDir +
- ", but does: " + files[i]);
- }
- }
-
- if (shouldExist.size() > 0) {
- fail("The following files should exist in " + rootDir +
- ", but do not: " + shouldExist);
- }
-
// Test for the proper members
Class ourClass = Class.forName("test.wsdl.groups.SomeType");
diff --git a/axis-ant/src/test/java/test/wsdl/header/VerifyFilesTestCase.java b/axis-ant/src/test/java/test/wsdl/header/VerifyFilesTestCase.java
deleted file mode 100644
index ad36202..0000000
--- a/axis-ant/src/test/java/test/wsdl/header/VerifyFilesTestCase.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * This tests the file generation of only the items that are referenced in WSDL
- *
- */
-package test.wsdl.header;
-
-import test.AxisFileGenTestBase;
-
-import java.io.File;
-import java.util.HashSet;
-import java.util.Set;
-
-public class VerifyFilesTestCase extends AxisFileGenTestBase {
- public VerifyFilesTestCase(String name) {
- super(name);
- }
-
- /**
- * List of files which should be generated. We're primarily concerned with
- * the implicit fault class.
- */
- protected Set shouldExist() {
- HashSet set = new HashSet();
-
- set.add("BindingImpl.java");
- set.add("BindingSkeleton.java");
- set.add("BindingStub.java");
- set.add("HeaderService.java");
- set.add("HeaderServiceLocator.java");
- set.add("HeaderServiceTestCase.java");
- set.add("HeaderType.java");
- set.add("ImplicitFault.java");
- set.add("Op1Fault.java");
- set.add("PortType.java");
- set.add("deploy.wsdd");
- set.add("undeploy.wsdd");
- return set;
- } // shouldExist
-
- /**
- /**
- * The directory containing the files that should exist.
- */
- protected String rootDir() {
- return "target" + File.separator + "work" + File.separator +
- "test" + File.separator + "wsdl" + File.separator +
- "header";
- } // rootDir
-
-} // class VerifyFilesTestCase
diff --git a/axis-ant/src/test/java/test/wsdl/literal/SalesRankNPrice_ServiceTestCase.java b/axis-ant/src/test/java/test/wsdl/literal/SalesRankNPrice_ServiceTestCase.java
deleted file mode 100644
index 64bbdb9..0000000
--- a/axis-ant/src/test/java/test/wsdl/literal/SalesRankNPrice_ServiceTestCase.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/**
- * SalesRankNPrice_ServiceTestCase.java
- *
- * This file was auto-generated from WSDL
- * by the Apache Axis Wsdl2java emitter.
- * Edited by hand to test a .NET web service on the internet.
- *
- *@author Tom Jordahl (tomj@macromedia.com)
- */
-
-package test.wsdl.literal;
-
-import java.io.File;
-import java.io.IOException;
-
-public class SalesRankNPrice_ServiceTestCase extends junit.framework.TestCase {
- // List of files which should be generated
- private static String[] shouldExist= new String[] {
- "SalesRankNPrice1.java",
- "SalesRanks.java",
- "Prices.java",
- "All.java",
- "SalesRankNPriceSoap.java",
- "SalesRankNPriceSoapStub.java",
- "SalesRankNPrice.java",
- "SalesRankNPriceLocator.java"
-
- };
-
- // List of files which should NOT be generated
- private static String[] shouldNotExist= new String[] {
- "GetAmazonSalesRank.java",
- "GetAmazonSalesRankResponse.java",
- "GetAmazonUKSalesRank.java",
- "GetAmazonUKSalesRankResponse.java",
- "GetBNSalesRank.java",
- "GetBNSalesRankResponse.java",
- "GetAmazonPrice.java",
- "GetAmazonPriceReponse.java",
- "GetAmazonUKPrice.java",
- "GetAmazonUKPriceResponse.java",
- "GetBNPrice.java",
- "GetBNPriceResponse.java",
- "GetAmazonSalesRankNPrice.java",
- "GetAmazonSalesRankNPriceResponse.java",
- "GetBNSalesRankNPrice.java",
- "GetBNSalesRankNPriceResponse.java",
- "GetAmazonAndBNSalesRank.java",
- "GetAmazonAndBNSalesRankResponse.java",
- "GetAmazonAndBNPrice.java",
- "GetAmazonAndBNPriceResponse.java",
- "GetAll.java",
- "GetAllResponse.java"
- };
-
- public void testFileGen() throws IOException {
- String rootDir = "target" + File.separator + "work" + File.separator +
- "test" + File.separator + "wsdl" + File.separator + "literal";
- // open up the output directory and check what files exist.
- File outputDir = new File(rootDir);
-
- String[] files = outputDir.list();
-
- for (int i=0; i < shouldExist.length; i++) {
- File f = new File(rootDir, shouldExist[i]);
- assertTrue("File does not exist (and it should): " + shouldExist[i], f.exists());
- }
-
- for (int i=0; i < shouldNotExist.length; i++) {
- File f = new File(rootDir, shouldNotExist[i]);
- assertTrue("File exist (and it should NOT): " + shouldNotExist[i], !f.exists());
- }
- }
-}
diff --git a/axis-ant/src/test/java/test/wsdl/multibinding/VerifyFilesTestCase.java b/axis-ant/src/test/java/test/wsdl/multibinding/VerifyFilesTestCase.java
deleted file mode 100644
index e62c916..0000000
--- a/axis-ant/src/test/java/test/wsdl/multibinding/VerifyFilesTestCase.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * This tests the file generation of only the items that are referenced in WSDL
- *
- */
-package test.wsdl.multibinding;
-
-import test.AxisFileGenTestBase;
-
-import java.io.File;
-import java.util.HashSet;
-import java.util.Set;
-
-public class VerifyFilesTestCase extends AxisFileGenTestBase {
- public VerifyFilesTestCase(String name) {
- super(name);
- }
-
- /**
- * List of files which should be generated.
- */
- protected Set shouldExist() {
- HashSet set = new HashSet();
- set.add("BindingAllLitImpl.java");
- set.add("BindingAllLitSkeleton.java");
- set.add("BindingAllLitStub.java");
- set.add("BindingNoLitImpl.java");
- set.add("BindingNoLitSkeleton.java");
- set.add("BindingNoLitStub.java");
- set.add("BindingSomeLitImpl.java");
- set.add("BindingSomeLitSkeleton.java");
- set.add("BindingSomeLitStub.java");
- set.add("MbPT.java");
- set.add("MbService.java");
- set.add("MbServiceLocator.java");
- set.add("MbServiceTestCase.java");
- set.add("deploy.wsdd");
- set.add("undeploy.wsdd");
- return set;
- } // shouldExist
-
- /**
- * The directory containing the files that should exist.
- */
- protected String rootDir() {
- return "target" + File.separator + "work" + File.separator +
- "test" + File.separator + "wsdl" + File.separator +
- "multibinding";
- } // rootDir
-
-} // class VerifyFilesTestCase
diff --git a/pom.xml b/pom.xml
index 5b0898e..3a1e6f5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -155,6 +155,18 @@
<prerequisites>
<maven>3.0.3</maven>
</prerequisites>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>cloudbees-snapshot</id>
+ <url>http://repository-veithen.forge.cloudbees.com/snapshot/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
<build>
<pluginManagement>
<plugins>
@@ -250,6 +262,11 @@
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
</plugin>
+ <plugin>
+ <groupId>com.github.veithen.filecheck</groupId>
+ <artifactId>filecheck-maven-plugin</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>