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-doap-plugin.git

commit 97ce41bdada5fe6451dc97970720c4d24693a697
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Tue Nov 17 05:56:42 2026 +0000

    Use JUnit 5 assertions and Mockito best practices in tests
---
 src/test/java/org/apache/maven/plugin/doap/DoapUtilTest.java | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/test/java/org/apache/maven/plugin/doap/DoapUtilTest.java 
b/src/test/java/org/apache/maven/plugin/doap/DoapUtilTest.java
index 3c9260f..fb47c14 100644
--- a/src/test/java/org/apache/maven/plugin/doap/DoapUtilTest.java
+++ b/src/test/java/org/apache/maven/plugin/doap/DoapUtilTest.java
@@ -75,7 +75,6 @@ class DoapUtilTest {
             DoapUtil.writeElement(writer, null, null, null);
             fail("Null not catched");
         } catch (IllegalArgumentException e) {
-            assertTrue(true, "IllegalArgumentException catched");
         } finally {
             w.close();
         }
@@ -100,7 +99,6 @@ class DoapUtilTest {
             DoapUtil.writeRdfResourceElement(writer, null, null, null);
             fail("Null not catched");
         } catch (IllegalArgumentException e) {
-            assertTrue(true, "IllegalArgumentException catched");
         } finally {
             w.close();
         }

Reply via email to