From 3cc8efe472ec308451c9476f315d01cd1498291b Mon Sep 17 00:00:00 2001 From: Thomas Ruhroth Date: Wed, 16 Oct 2024 09:00:10 +0200 Subject: [PATCH] #314 Some Unit-Test, because jacoco for IT test seems to be ignored - 2nd try --- .../HtmlSanityCheckMojoTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/htmlSanityCheck-maven-plugin/src/test/java/org/aim42/htmlSanityCheck/htmlsanitycheckmavenplugin/HtmlSanityCheckMojoTest.java b/htmlSanityCheck-maven-plugin/src/test/java/org/aim42/htmlSanityCheck/htmlsanitycheckmavenplugin/HtmlSanityCheckMojoTest.java index 5c8eab1e..1fe4594f 100644 --- a/htmlSanityCheck-maven-plugin/src/test/java/org/aim42/htmlSanityCheck/htmlsanitycheckmavenplugin/HtmlSanityCheckMojoTest.java +++ b/htmlSanityCheck-maven-plugin/src/test/java/org/aim42/htmlSanityCheck/htmlsanitycheckmavenplugin/HtmlSanityCheckMojoTest.java @@ -1,10 +1,11 @@ package org.aim42.htmlSanityCheck.htmlsanitycheckmavenplugin; -import org.junit.jupiter.api.Test; + import org.aim42.htmlsanitycheck.Configuration; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; + class HtmlSanityCheckMojoTest { @@ -13,7 +14,7 @@ class HtmlSanityCheckMojoTest { void setupConfiguration() { HtmlSanityCheckMojo mojo = new HtmlSanityCheckMojo(); Configuration config = mojo.setupConfiguration(); - assertTrue(config != null); + Assertions.assertThat(config).isNotNull(); } } \ No newline at end of file