From ecef688bb97eea3162e22e78d21df2cde72922ac Mon Sep 17 00:00:00 2001 From: marko-bekhta Date: Tue, 10 Oct 2023 15:50:23 +0200 Subject: [PATCH] HSEARCH-3654 Add more junit4 forbidden API rules --- build/config/src/main/resources/forbidden-internal.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/build/config/src/main/resources/forbidden-internal.txt b/build/config/src/main/resources/forbidden-internal.txt index 52d22f247db..fb87cd92151 100644 --- a/build/config/src/main/resources/forbidden-internal.txt +++ b/build/config/src/main/resources/forbidden-internal.txt @@ -37,6 +37,14 @@ org.skyscreamer.jsonassert.JSONAssert @ Use JsonHelper.assertJsonEquals to avoid org.junit.experimental.runners.Enclosed @ Use NestedRunner instead of Enclosed and annotate inner classes with @Nested org.junit.Assert @ Use AssertJ assertions instead org.junit.jupiter.api.Assertions @ Use AssertJ assertions instead +org.junit.Test @ Use JUnit 5 instead +org.junit.Before @ Use JUnit 5 instead +org.junit.After @ Use JUnit 5 instead +org.junit.BeforeClass @ Use JUnit 5 instead +org.junit.AfterClass @ Use JUnit 5 instead +org.junit.Rule @ Use JUnit 5 instead +org.junit.ClassRule @ Use JUnit 5 instead +org.junit.Ignore @ Use JUnit 5 instead ################################################################################################################ # Unsafe API/SPI from Hibernate ORM