From 942ba0281537674cf71f308c2e388dd99bda2f57 Mon Sep 17 00:00:00 2001 From: Ashley Scopes <73482956+ascopes@users.noreply.github.com> Date: Sun, 22 Oct 2023 12:18:19 +0100 Subject: [PATCH] Remove unneeded workaround for https://github.com/mockito/mockito/issues/3156 now classes are separated --- .../resolver/PathProtocResolverTest.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/test/java/io/github/ascopes/protobufmavenplugin/resolver/PathProtocResolverTest.java b/src/test/java/io/github/ascopes/protobufmavenplugin/resolver/PathProtocResolverTest.java index 090947b4..bc3dc795 100644 --- a/src/test/java/io/github/ascopes/protobufmavenplugin/resolver/PathProtocResolverTest.java +++ b/src/test/java/io/github/ascopes/protobufmavenplugin/resolver/PathProtocResolverTest.java @@ -32,12 +32,6 @@ @ExtendWith(MockitoExtension.class) class PathProtocResolverTest { - static { - // Call one of the methods to ensure classloading has completed prior to mocking taking place. - // See https://github.com/mockito/mockito/issues/3156. - HostEnvironment.isLinux(); - } - @Mock MockedStatic platformMock;