This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-antrun-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 8c15fa6 Cleanup tests (#351)
8c15fa6 is described below
commit 8c15fa69d7560a912cb801e14dbd51badabf3b32
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Sun Dec 21 16:16:47 2025 +0100
Cleanup tests (#351)
Co-authored-by: Moderne <[email protected]>
---
.../plugins/antrun/AntrunXmlPlexusConfigurationWriterTest.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/src/test/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriterTest.java
b/src/test/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriterTest.java
index 4d609a3..d256423 100644
---
a/src/test/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriterTest.java
+++
b/src/test/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriterTest.java
@@ -37,7 +37,7 @@ import static
org.xmlunit.matchers.CompareMatcher.isIdenticalTo;
* Test class for {@link AntrunXmlPlexusConfigurationWriter}.
* @author gboue
*/
-public class AntrunXmlPlexusConfigurationWriterTest {
+class AntrunXmlPlexusConfigurationWriterTest {
private static final String TARGET_NAME = "main";
@@ -64,7 +64,7 @@ public class AntrunXmlPlexusConfigurationWriterTest {
* @throws IOException In case of problems
*/
@Test
- public void testBasic() throws IOException {
+ void basic() throws Exception {
configuration.getChild("echo", true).setAttribute("message", "Hello");
configurationWriter.write(configuration, file, "", TARGET_NAME);
assertXmlIsExpected("/configuration-writer/basic.xml", file);
@@ -76,7 +76,7 @@ public class AntrunXmlPlexusConfigurationWriterTest {
* @throws IOException In case of problems
*/
@Test
- public void testEmptyTarget() throws IOException {
+ void emptyTarget() throws Exception {
configurationWriter.write(configuration, file, "", TARGET_NAME);
assertXmlIsExpected("/configuration-writer/empty-target.xml", file);
}
@@ -87,7 +87,7 @@ public class AntrunXmlPlexusConfigurationWriterTest {
* @throws IOException In case of problems
*/
@Test
- public void testCustomTaskPrefix() throws IOException {
+ void customTaskPrefix() throws Exception {
PlexusConfiguration child = configuration.getChild("mvn:foo", true);
child.setAttribute("attr1", "val1");
child.setValue("The first value.");
@@ -105,7 +105,7 @@ public class AntrunXmlPlexusConfigurationWriterTest {
* @throws IOException In case of problems
*/
@Test
- public void testCombineAttributes() throws IOException {
+ void combineAttributes() throws Exception {
configuration.setAttribute("combine.children", "append");
configuration.setAttribute("description", "foo");
configuration.getChild("child", true).setAttribute("combine.self",
"override");