diff --git a/src/test/java/net/datafaker/integration/FakerRepeatabilityIntegrationTest.java b/src/test/java/net/datafaker/integration/FakerRepeatabilityIntegrationTest.java index 022d1bca4..ac8fb150e 100644 --- a/src/test/java/net/datafaker/integration/FakerRepeatabilityIntegrationTest.java +++ b/src/test/java/net/datafaker/integration/FakerRepeatabilityIntegrationTest.java @@ -55,7 +55,7 @@ void shouldCreateUniqueValues() throws InvocationTargetException, IllegalAccessE assertThat(difference.entriesDiffering()).hasSizeGreaterThan(difference.entriesInCommon().size()); } - public static Map buildReport(Faker faker) throws IllegalAccessException, InvocationTargetException { + private static Map buildReport(Faker faker) throws IllegalAccessException, InvocationTargetException { Map result = new HashMap<>(); // Need to sort the methods since they are sometimes returned in a different order diff --git a/src/test/java/net/datafaker/providers/base/BaseFakerTest.java b/src/test/java/net/datafaker/providers/base/BaseFakerTest.java index e45bada4d..07703ece9 100644 --- a/src/test/java/net/datafaker/providers/base/BaseFakerTest.java +++ b/src/test/java/net/datafaker/providers/base/BaseFakerTest.java @@ -1,7 +1,5 @@ package net.datafaker.providers.base; -import net.datafaker.Faker; -import net.datafaker.integration.FakerRepeatabilityIntegrationTest; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.TestInfo; import org.junit.jupiter.api.TestInstance; @@ -9,7 +7,6 @@ import org.junit.jupiter.params.provider.MethodSource; import org.mockito.MockitoAnnotations; -import java.lang.reflect.InvocationTargetException; import java.util.Collection; import java.util.HashSet; import java.util.List; @@ -24,15 +21,6 @@ @TestInstance(TestInstance.Lifecycle.PER_CLASS) public class BaseFakerTest { - static { - try { - // This will allow to init all the static Faker's vars first in predictable way - FakerRepeatabilityIntegrationTest.buildReport(new Faker()); - } catch (IllegalAccessException | InvocationTargetException e) { - throw new RuntimeException(e); - } - } - private static final Logger LOG = Logger.getLogger(BaseFakerTest.class.getCanonicalName()); protected final T faker = getFaker();