From 778fb13d84ecb5757f8d6423fa3f6d1f77d41cf2 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 23 Aug 2021 12:03:55 +0300 Subject: [PATCH] Remove leftover field that was never populated --- .../java/io/quarkus/test/junit/QuarkusTestExtension.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTestExtension.java b/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTestExtension.java index 3d055df6962a0..17af546e82d81 100644 --- a/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTestExtension.java +++ b/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTestExtension.java @@ -138,7 +138,6 @@ public class QuarkusTestExtension private static List beforeClassCallbacks; private static List afterConstructCallbacks; - private static List legacyAfterConstructCallbacks; private static List beforeEachCallbacks; private static List afterEachCallbacks; private static Class quarkusTestMethodContextClass; @@ -473,7 +472,6 @@ private void populateCallbacks(ClassLoader classLoader) throws ClassNotFoundExce quarkusTestMethodContextClass = null; beforeClassCallbacks = new ArrayList<>(); afterConstructCallbacks = new ArrayList<>(); - legacyAfterConstructCallbacks = new ArrayList<>(); beforeEachCallbacks = new ArrayList<>(); afterEachCallbacks = new ArrayList<>(); @@ -870,10 +868,6 @@ private void initTestState(ExtensionContext extensionContext, ExtensionState sta afterConstructCallback.getClass().getMethod("afterConstruct", Object.class).invoke(afterConstructCallback, actualTestInstance); } - for (Object legacyAfterConstructCallback : legacyAfterConstructCallbacks) { - legacyAfterConstructCallback.getClass().getMethod("beforeAll", Object.class) - .invoke(legacyAfterConstructCallback, actualTestInstance); - } } catch (Exception e) { throw new TestInstantiationException("Failed to create test instance", e); }