AXIOM-506: Move TextDataSource to axiom-legacy-attachments
That's the only remaining module using that class.
diff --git a/axiom-legacy-attachments/pom.xml b/axiom-legacy-attachments/pom.xml
index 64b3791..3586232 100644
--- a/axiom-legacy-attachments/pom.xml
+++ b/axiom-legacy-attachments/pom.xml
@@ -64,12 +64,6 @@
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>activation-testutils</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
<artifactId>blob-testutils</artifactId>
<version>${project.version}</version>
<scope>test</scope>
@@ -80,6 +74,11 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<build>
diff --git a/axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java b/axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
index ce6b6ea..49c7c08 100644
--- a/axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
+++ b/axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/AttachmentsTest.java
@@ -56,7 +56,6 @@
import org.apache.axiom.om.AbstractTestCase;
import org.apache.axiom.om.OMException;
import org.apache.axiom.om.impl.MTOMConstants;
-import org.apache.axiom.testutils.activation.TextDataSource;
import org.apache.axiom.testutils.blob.RandomBlob;
import org.apache.axiom.testutils.io.ExceptionInputStream;
import org.apache.axiom.testutils.io.IOTestUtils;
diff --git a/testing/activation-testutils/src/main/java/org/apache/axiom/testutils/activation/TextDataSource.java b/axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/TextDataSource.java
similarity index 97%
rename from testing/activation-testutils/src/main/java/org/apache/axiom/testutils/activation/TextDataSource.java
rename to axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/TextDataSource.java
index d582e95..60b8755 100644
--- a/testing/activation-testutils/src/main/java/org/apache/axiom/testutils/activation/TextDataSource.java
+++ b/axiom-legacy-attachments/src/test/java/org/apache/axiom/attachments/TextDataSource.java
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
-package org.apache.axiom.testutils.activation;
+package org.apache.axiom.attachments;
import java.io.IOException;
import java.io.InputStream;
diff --git a/testing/activation-testutils/pom.xml b/testing/activation-testutils/pom.xml
deleted file mode 100644
index 33027be..0000000
--- a/testing/activation-testutils/pom.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- ~ 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.
- -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.ws.commons.axiom</groupId>
- <artifactId>testing</artifactId>
- <version>2.0.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>activation-testutils</artifactId>
-
- <url>http://ws.apache.org/axiom/</url>
-
- <dependencies>
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- </dependency>
- <dependency>
- <groupId>jakarta.activation</groupId>
- <artifactId>jakarta.activation-api</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>com.spotify.fmt</groupId>
- <artifactId>fmt-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-</project>
diff --git a/testing/pom.xml b/testing/pom.xml
index 2e390da..994a0b0 100644
--- a/testing/pom.xml
+++ b/testing/pom.xml
@@ -46,7 +46,6 @@
<module>jaxp-testsuite</module>
<module>url-registry</module>
<module>blob-testutils</module>
- <module>activation-testutils</module>
</modules>
<build>