This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch maven-resources-plugin-3.x
in repository https://gitbox.apache.org/repos/asf/maven-resources-plugin.git
The following commit(s) were added to refs/heads/maven-resources-plugin-3.x by
this push:
new 1e59b45 Migration to JUnit 5 - avoid using AbstractMojoTestCase
1e59b45 is described below
commit 1e59b45abd7e9f9a8abe8bdab99c8e0da14ca432
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Mon Dec 1 22:08:12 2025 +0100
Migration to JUnit 5 - avoid using AbstractMojoTestCase
also:
- refactor PropertyUtilsTest - it is not Mojo test, move use cases from
advanced amd enhanced examples
- CopyResourcesMojoTest - test copy-resources instead of resources goal,
add more tests for filtered and not filtered resources
---
pom.xml | 16 ++++
.../resources/AbstractPropertyUtilsTest.java | 86 --------------------
.../plugins/resources/CopyResourcesMojoTest.java | 86 ++++++++++++++------
.../resources/PropertyUtilsExceptionTest.java | 38 ---------
...opertyUtilsTest.java => PropertyUtilsTest.java} | 92 ++++++++++++++++------
.../resources}/config.properties | 3 +-
.../unit/propertiesutils-test/advance.properties | 23 ------
.../advance_validation.properties | 23 ------
.../unit/propertiesutils-test/enhanced.properties | 25 ------
.../enhanced_validation.properties | 25 ------
.../{basic.properties => test.properties} | 12 +++
...ation.properties => test_validation.properties} | 12 +++
.../copy-resources-test/filter-files/filter.txt | 18 -----
13 files changed, 172 insertions(+), 287 deletions(-)
diff --git a/pom.xml b/pom.xml
index 66faa49..ef908f7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -136,12 +136,28 @@ under the License.
<version>3.4.0</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.vintage</groupId>
+ <artifactId>junit-vintage-engine</artifactId>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-core</artifactId>
+ <version>4.11.0</version>
+ <scope>test</scope>
+ </dependency>
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-api</artifactId>
diff --git
a/src/test/java/org/apache/maven/plugins/resources/AbstractPropertyUtilsTest.java
b/src/test/java/org/apache/maven/plugins/resources/AbstractPropertyUtilsTest.java
deleted file mode 100644
index e5774a8..0000000
---
a/src/test/java/org/apache/maven/plugins/resources/AbstractPropertyUtilsTest.java
+++ /dev/null
@@ -1,86 +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 org.apache.maven.plugins.resources;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.file.Files;
-import java.util.Enumeration;
-import java.util.Properties;
-
-import org.apache.maven.plugin.testing.AbstractMojoTestCase;
-
-/**
- * Base class for propertyutils test case
- */
-public abstract class AbstractPropertyUtilsTest extends AbstractMojoTestCase {
- protected File propertyFile;
-
- protected File validationFile;
-
- protected Properties validationProp;
-
- protected abstract File getPropertyFile();
-
- protected abstract File getValidationFile();
-
- protected void setUp() throws Exception {
- super.setUp();
-
- // load data
- propertyFile = getPropertyFile();
- assertNotNull(propertyFile);
-
- validationFile = getValidationFile();
- assertNotNull(validationFile);
-
- loadValidationProperties(validationFile);
- }
-
- protected boolean validateProperties(Properties prop) {
- boolean bRetVal = false;
-
- Enumeration<?> propKeys = prop.keys();
- String key;
-
- while (propKeys.hasMoreElements()) {
- key = (String) propKeys.nextElement();
- bRetVal =
prop.getProperty(key).equals(validationProp.getProperty(key));
- if (!bRetVal) {
- break;
- }
- }
-
- return bRetVal;
- }
-
- /**
- * load the property file for cross checking the
- * values in the processed property file
- *
- * @param validationPropFile
- */
- private void loadValidationProperties(File validationPropFile) throws
IOException {
- validationProp = new Properties();
- try (InputStream in =
Files.newInputStream(validationPropFile.toPath())) {
- validationProp.load(in);
- }
- }
-}
diff --git
a/src/test/java/org/apache/maven/plugins/resources/CopyResourcesMojoTest.java
b/src/test/java/org/apache/maven/plugins/resources/CopyResourcesMojoTest.java
index 9f6520f..6c0b07c 100644
---
a/src/test/java/org/apache/maven/plugins/resources/CopyResourcesMojoTest.java
+++
b/src/test/java/org/apache/maven/plugins/resources/CopyResourcesMojoTest.java
@@ -18,49 +18,83 @@
*/
package org.apache.maven.plugins.resources;
+import javax.inject.Inject;
+
import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.nio.file.Files;
+import java.nio.file.Path;
import java.util.Collections;
+import java.util.Properties;
+import org.apache.maven.api.plugin.testing.Basedir;
+import org.apache.maven.api.plugin.testing.InjectMojo;
+import org.apache.maven.api.plugin.testing.MojoParameter;
+import org.apache.maven.api.plugin.testing.MojoTest;
import org.apache.maven.model.Resource;
-import org.apache.maven.plugin.testing.AbstractMojoTestCase;
-import org.apache.maven.plugins.resources.stub.MavenProjectResourcesStub;
-import org.codehaus.plexus.util.FileUtils;
+import org.apache.maven.project.MavenProject;
+import org.junit.jupiter.api.Test;
+
+import static org.apache.maven.api.plugin.testing.MojoExtension.getBasedir;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.mockito.Mockito.when;
/**
* @author Olivier Lamy
* @version $Id$
*/
-public class CopyResourcesMojoTest extends AbstractMojoTestCase {
+@MojoTest
+class CopyResourcesMojoTest {
- File outputDirectory = new File(getBasedir(),
"/target/copyResourcesTests");
+ @Inject
+ private MavenProject project;
- protected void setUp() throws Exception {
- super.setUp();
- if (!outputDirectory.exists()) {
- outputDirectory.mkdirs();
- } else {
- FileUtils.cleanDirectory(outputDirectory);
- }
- }
+ @Test
+ @InjectMojo(goal = "copy-resources")
+ @Basedir("/unit/copy-resources-test")
+ @MojoParameter(name = "outputDirectory", value =
"${basedir}/filtered-resources")
+ void copyWithoutFiltering(CopyResourcesMojo mojo) throws Exception {
+ addResources(mojo, false);
- public void testCopyWithoutFiltering() throws Exception {
- File testPom = new File(getBasedir(),
"/target/test-classes/unit/resources-test/plugin-config.xml");
- ResourcesMojo mojo = (ResourcesMojo) lookupMojo("resources", testPom);
+ mojo.execute();
- mojo.setOutputDirectory(outputDirectory);
+ Properties properties = getResultProperties();
- Resource resource = new Resource();
- resource.setDirectory(getBasedir() +
"/src/test/unit-files/copy-resources-test/no-filter");
- resource.setFiltering(false);
+ assertEquals("zorglub", properties.getProperty("config"));
+ assertEquals("${project.version}",
properties.getProperty("project.version"));
+ }
- mojo.setResources(Collections.singletonList(resource));
+ @Test
+ @InjectMojo(goal = "copy-resources")
+ @Basedir("/unit/copy-resources-test")
+ @MojoParameter(name = "outputDirectory", value =
"${basedir}/filtered-resources")
+ void copyWithFiltering(CopyResourcesMojo mojo) throws Exception {
+
+ addResources(mojo, true);
+ when(project.getVersion()).thenReturn("1.2.3-SNAPSHOT");
- MavenProjectResourcesStub project = new
MavenProjectResourcesStub("CopyResourcesMojoTest");
- File targetFile = new File(getBasedir(), "/target/copyResourcesTests");
- project.setBaseDir(targetFile);
- setVariableValueToObject(mojo, "project", project);
mojo.execute();
- assertTrue(new File(targetFile, "config.properties").exists());
+ Properties properties = getResultProperties();
+
+ assertEquals("zorglub", properties.getProperty("config"));
+ assertEquals("1.2.3-SNAPSHOT",
properties.getProperty("project.version"));
+ }
+
+ private Properties getResultProperties() throws IOException {
+ Properties properties = new Properties();
+ Path result = new File(getBasedir(),
"filtered-resources/config.properties").toPath();
+ try (InputStream in = Files.newInputStream(result)) {
+ properties.load(in);
+ }
+ return properties;
+ }
+
+ private void addResources(CopyResourcesMojo mojo, boolean filtered) {
+ Resource resource = new Resource();
+ resource.setDirectory(getBasedir() + "/resources");
+ resource.setFiltering(filtered);
+ mojo.setResources(Collections.singletonList(resource));
}
}
diff --git
a/src/test/java/org/apache/maven/plugins/resources/PropertyUtilsExceptionTest.java
b/src/test/java/org/apache/maven/plugins/resources/PropertyUtilsExceptionTest.java
deleted file mode 100644
index 18f5aa1..0000000
---
a/src/test/java/org/apache/maven/plugins/resources/PropertyUtilsExceptionTest.java
+++ /dev/null
@@ -1,38 +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 org.apache.maven.plugins.resources;
-
-import java.io.File;
-import java.io.FileNotFoundException;
-
-import org.apache.maven.shared.filtering.PropertyUtils;
-import org.junit.Test;
-
-public class PropertyUtilsExceptionTest {
-
- /**
- * load property test case can be adjusted by modifying the
basic.properties and basic_validation properties
- *
- * @throws Exception
- */
- @Test(expected = FileNotFoundException.class)
- public void loadPropertyFileShouldFailWithFileNotFoundException() throws
Exception {
- PropertyUtils.loadPropertyFile(new File("NON_EXISTENT_FILE"), true,
true);
- }
-}
diff --git
a/src/test/java/org/apache/maven/plugins/resources/BasicPropertyUtilsTest.java
b/src/test/java/org/apache/maven/plugins/resources/PropertyUtilsTest.java
similarity index 50%
rename from
src/test/java/org/apache/maven/plugins/resources/BasicPropertyUtilsTest.java
rename to
src/test/java/org/apache/maven/plugins/resources/PropertyUtilsTest.java
index 7f2e311..aed7dd0 100644
---
a/src/test/java/org/apache/maven/plugins/resources/BasicPropertyUtilsTest.java
+++ b/src/test/java/org/apache/maven/plugins/resources/PropertyUtilsTest.java
@@ -19,31 +19,42 @@
package org.apache.maven.plugins.resources;
import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.InputStream;
+import java.nio.file.Files;
+import java.util.Enumeration;
import java.util.Properties;
import org.apache.maven.shared.filtering.PropertyUtils;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
-public class BasicPropertyUtilsTest extends AbstractPropertyUtilsTest {
+import static org.apache.maven.api.plugin.testing.MojoExtension.getBasedir;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertThrows;
- protected File getPropertyFile() {
- File propFile = new File(getBasedir(),
"/target/test-classes/unit/propertiesutils-test/basic.properties");
+class PropertyUtilsTest {
- if (!propFile.exists()) {
- propFile = null;
- }
+ private File propertyFile;
- return propFile;
- }
+ private Properties validationProp;
- protected File getValidationFile() {
- File validationFile =
- new File(getBasedir(),
"/target/test-classes/unit/propertiesutils-test/basic_validation.properties");
+ @BeforeEach
+ void setUp() throws Exception {
- if (!validationFile.exists()) {
- validationFile = null;
- }
+ // load data
+
+ propertyFile = new File(getBasedir(),
"/target/test-classes/unit/propertiesutils-test/test.properties");
+ assertNotNull(propertyFile);
- return validationFile;
+ File validationFile =
+ new File(getBasedir(),
"/target/test-classes/unit/propertiesutils-test/test_validation.properties");
+ assertNotNull(validationFile);
+
+ loadValidationProperties(validationFile);
}
/**
@@ -51,11 +62,12 @@ public class BasicPropertyUtilsTest extends
AbstractPropertyUtilsTest {
*
* @throws Exception
*/
- public void testBasicLoadPropertyFF() throws Exception {
+ @Test
+ void testBasicLoadPropertyFF() throws Exception {
Properties prop = PropertyUtils.loadPropertyFile(propertyFile, false,
false);
assertNotNull(prop);
- assertTrue(validateProperties(prop));
+ validateProperties(prop);
}
/**
@@ -63,11 +75,12 @@ public class BasicPropertyUtilsTest extends
AbstractPropertyUtilsTest {
*
* @throws Exception
*/
- public void testBasicLoadPropertyTF() throws Exception {
+ @Test
+ void testBasicLoadPropertyTF() throws Exception {
Properties prop = PropertyUtils.loadPropertyFile(propertyFile, true,
false);
assertNotNull(prop);
- assertTrue(validateProperties(prop));
+ validateProperties(prop);
}
/**
@@ -75,12 +88,13 @@ public class BasicPropertyUtilsTest extends
AbstractPropertyUtilsTest {
*
* @throws Exception
*/
- public void testBasicLoadPropertyTT() throws Exception {
+ @Test
+ void testBasicLoadPropertyTT() throws Exception {
Properties prop = PropertyUtils.loadPropertyFile(propertyFile, true,
true);
validationProp.putAll(System.getProperties());
assertNotNull(prop);
- assertTrue(validateProperties(prop));
+ validateProperties(prop);
}
/**
@@ -88,11 +102,45 @@ public class BasicPropertyUtilsTest extends
AbstractPropertyUtilsTest {
*
* @throws Exception
*/
- public void testNonExistentProperty() throws Exception {
+ @Test
+ void testNonExistentProperty() throws Exception {
Properties prop = PropertyUtils.loadPropertyFile(propertyFile, true,
true);
validationProp.putAll(System.getProperties());
assertNotNull(prop);
assertNull(prop.getProperty("does_not_exist"));
}
+
+ @Test
+ void loadPropertyFileShouldFailWithFileNotFoundException() {
+
+ assertThrows(
+ FileNotFoundException.class,
+ () -> PropertyUtils.loadPropertyFile(new
File("NON_EXISTENT_FILE"), true, true));
+ }
+
+ private void validateProperties(Properties prop) {
+
+ Enumeration<?> propKeys = prop.keys();
+ String key;
+
+ while (propKeys.hasMoreElements()) {
+ key = (String) propKeys.nextElement();
+ Assertions.assertEquals(
+ validationProp.getProperty(key), prop.getProperty(key),
"Property value mismatch for key: " + key);
+ }
+ }
+
+ /**
+ * load the property file for cross checking the
+ * values in the processed property file
+ *
+ * @param validationPropFile
+ */
+ private void loadValidationProperties(File validationPropFile) throws
IOException {
+ validationProp = new Properties();
+ try (InputStream in =
Files.newInputStream(validationPropFile.toPath())) {
+ validationProp.load(in);
+ }
+ }
}
diff --git
a/src/test/unit-files/copy-resources-test/no-filter/config.properties
b/src/test/resources/unit/copy-resources-test/resources/config.properties
similarity index 94%
rename from src/test/unit-files/copy-resources-test/no-filter/config.properties
rename to
src/test/resources/unit/copy-resources-test/resources/config.properties
index c3bef7c..6fe3d11 100644
--- a/src/test/unit-files/copy-resources-test/no-filter/config.properties
+++ b/src/test/resources/unit/copy-resources-test/resources/config.properties
@@ -15,4 +15,5 @@
# specific language governing permissions and limitations
# under the License.
-config=zorglub
\ No newline at end of file
+config=zorglub
+project.version=${project.version}
diff --git a/src/test/resources/unit/propertiesutils-test/advance.properties
b/src/test/resources/unit/propertiesutils-test/advance.properties
deleted file mode 100644
index 4f2cb3c..0000000
--- a/src/test/resources/unit/propertiesutils-test/advance.properties
+++ /dev/null
@@ -1,23 +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.
-
-key1:value1
-key2:value 2
-key3:value 3
-key4:${key3}
-key5:${key1}.value4
-key6:${key1}_${key3}_value5
diff --git
a/src/test/resources/unit/propertiesutils-test/advance_validation.properties
b/src/test/resources/unit/propertiesutils-test/advance_validation.properties
deleted file mode 100644
index 92d0caa..0000000
--- a/src/test/resources/unit/propertiesutils-test/advance_validation.properties
+++ /dev/null
@@ -1,23 +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.
-
-key1 : value1
-key2 : value 2
-key3 : value 3
-key4 : value 3
-key5 : value1.value4
-key6 : value1_value 3_value5
diff --git a/src/test/resources/unit/propertiesutils-test/enhanced.properties
b/src/test/resources/unit/propertiesutils-test/enhanced.properties
deleted file mode 100644
index 380a06f..0000000
--- a/src/test/resources/unit/propertiesutils-test/enhanced.properties
+++ /dev/null
@@ -1,25 +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.
-
-key1=111
-key2=${prop1}
-key3=333_${key2}_${key1}_333
-key4=444_${key1}_444
-key5=555_${key4}_555
-key6=666_${key7}_666
-key7=777_${key8}_777
-key8=888
\ No newline at end of file
diff --git
a/src/test/resources/unit/propertiesutils-test/enhanced_validation.properties
b/src/test/resources/unit/propertiesutils-test/enhanced_validation.properties
deleted file mode 100644
index 0f29606..0000000
---
a/src/test/resources/unit/propertiesutils-test/enhanced_validation.properties
+++ /dev/null
@@ -1,25 +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.
-
-key1=111
-key2=valueOfProperty1
-key3=333_valueOfProperty1_111_333
-key4=444_111_444
-key5=555_444_111_444_555
-key6=666_777_888_777_666
-key7=777_888_777
-key8=888
\ No newline at end of file
diff --git a/src/test/resources/unit/propertiesutils-test/basic.properties
b/src/test/resources/unit/propertiesutils-test/test.properties
similarity index 78%
rename from src/test/resources/unit/propertiesutils-test/basic.properties
rename to src/test/resources/unit/propertiesutils-test/test.properties
index 50fee62..13e525f 100644
--- a/src/test/resources/unit/propertiesutils-test/basic.properties
+++ b/src/test/resources/unit/propertiesutils-test/test.properties
@@ -20,3 +20,15 @@ key2:value2
key3:value3
key4:value4
key5:${key4}
+key6:value 6
+key7:${key1}.value4
+key8:${key1}_${key6}_value5
+
+ekey1=111
+ekey2=222_${ekey1}_222
+ekey3=333_${ekey2}_${ekey1}_333
+ekey4=444_${ekey1}_444
+ekey5=555_${ekey4}_555
+ekey6=666_${ekey7}_666
+ekey7=777_${ekey8}_777
+ekey8=888
diff --git
a/src/test/resources/unit/propertiesutils-test/basic_validation.properties
b/src/test/resources/unit/propertiesutils-test/test_validation.properties
similarity index 79%
rename from
src/test/resources/unit/propertiesutils-test/basic_validation.properties
rename to
src/test/resources/unit/propertiesutils-test/test_validation.properties
index c2acf6c..6da1da6 100644
--- a/src/test/resources/unit/propertiesutils-test/basic_validation.properties
+++ b/src/test/resources/unit/propertiesutils-test/test_validation.properties
@@ -20,3 +20,15 @@ key2:value2
key3:value3
key4:value4
key5:value4
+key6:value 6
+key7:value1.value4
+key8:value1_value 6_value5
+
+ekey1=111
+ekey2=222_111_222
+ekey3=333_222_111_222_111_333
+ekey4=444_111_444
+ekey5=555_444_111_444_555
+ekey6=666_777_888_777_666
+ekey7=777_888_777
+ekey8=888
diff --git a/src/test/unit-files/copy-resources-test/filter-files/filter.txt
b/src/test/unit-files/copy-resources-test/filter-files/filter.txt
deleted file mode 100644
index 88e0730..0000000
--- a/src/test/unit-files/copy-resources-test/filter-files/filter.txt
+++ /dev/null
@@ -1,18 +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.
-
-foo=bar
\ No newline at end of file