Skip to content

Commit

Permalink
Remove leftover field that was never populated
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed Aug 24, 2021
1 parent 5482946 commit 778fb13
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public class QuarkusTestExtension

private static List<Object> beforeClassCallbacks;
private static List<Object> afterConstructCallbacks;
private static List<Object> legacyAfterConstructCallbacks;
private static List<Object> beforeEachCallbacks;
private static List<Object> afterEachCallbacks;
private static Class<?> quarkusTestMethodContextClass;
Expand Down Expand Up @@ -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<>();

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 778fb13

Please sign in to comment.