From 882c0207621d0d1537a52b87b77e3e819baacd34 Mon Sep 17 00:00:00 2001 From: Mats Byrkjeland Date: Mon, 15 Apr 2024 11:35:12 +0200 Subject: [PATCH] Rename test files to make them run The files should match the expected name pattern so that are executed through maven. --- .../{HtmlValidatorTestV1.java => HtmlValidatorV1Test.java} | 4 +--- .../{HtmlValidatorTestV2.java => HtmlValidatorV2Test.java} | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) rename src/test/java/no/digipost/sanitizing/{HtmlValidatorTestV1.java => HtmlValidatorV1Test.java} (96%) rename src/test/java/no/digipost/sanitizing/{HtmlValidatorTestV2.java => HtmlValidatorV2Test.java} (99%) diff --git a/src/test/java/no/digipost/sanitizing/HtmlValidatorTestV1.java b/src/test/java/no/digipost/sanitizing/HtmlValidatorV1Test.java similarity index 96% rename from src/test/java/no/digipost/sanitizing/HtmlValidatorTestV1.java rename to src/test/java/no/digipost/sanitizing/HtmlValidatorV1Test.java index 6e6b27c..6d7430a 100644 --- a/src/test/java/no/digipost/sanitizing/HtmlValidatorTestV1.java +++ b/src/test/java/no/digipost/sanitizing/HtmlValidatorV1Test.java @@ -19,16 +19,14 @@ import org.junit.jupiter.api.Test; import java.time.Clock; -import java.time.Instant; import java.time.ZoneOffset; -import static no.digipost.sanitizing.internal.PolicyFactoryProvider.V2_IN_EFFECT; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertTrue; -class HtmlValidatorTestV1 { +class HtmlValidatorV1Test { private final HtmlValidator V1_validator = new HtmlValidator(Clock.fixed(PolicyFactoryProvider.V2_IN_EFFECT.minusSeconds(1), ZoneOffset.UTC)); diff --git a/src/test/java/no/digipost/sanitizing/HtmlValidatorTestV2.java b/src/test/java/no/digipost/sanitizing/HtmlValidatorV2Test.java similarity index 99% rename from src/test/java/no/digipost/sanitizing/HtmlValidatorTestV2.java rename to src/test/java/no/digipost/sanitizing/HtmlValidatorV2Test.java index 2500d95..8097592 100644 --- a/src/test/java/no/digipost/sanitizing/HtmlValidatorTestV2.java +++ b/src/test/java/no/digipost/sanitizing/HtmlValidatorV2Test.java @@ -26,7 +26,7 @@ import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertTrue; -class HtmlValidatorTestV2 { +class HtmlValidatorV2Test { private final HtmlValidator V2_validator = new HtmlValidator(Clock.fixed(PolicyFactoryProvider.V2_IN_EFFECT, ZoneOffset.UTC));