diff --git a/src/test/java/io/github/glytching/junit/extension/random/RandomBeansExtensionFieldTest.java b/src/test/java/io/github/glytching/junit/extension/random/RandomBeansExtensionFieldTest.java index a13b571..504dbf3 100644 --- a/src/test/java/io/github/glytching/junit/extension/random/RandomBeansExtensionFieldTest.java +++ b/src/test/java/io/github/glytching/junit/extension/random/RandomBeansExtensionFieldTest.java @@ -38,7 +38,7 @@ public class RandomBeansExtensionFieldTest { // gather the random values to facilitate assertions on the not distinct-ness of the value supplied to // each test - private static Collection staticStringCollection = new HashSet<>(); + private static Collection anyStaticStrings = new HashSet<>(); // gather the random values to facilitate assertions on the distinct-ness of the value supplied to // each test @@ -87,7 +87,7 @@ public void canInjectAFullyPopulatedRandomObject() { } @Test - public void acnInjectStaticFields() { + public void canInjectStaticFields() { assertThat(anyStaticString, is(notNullValue())); } @@ -161,9 +161,9 @@ public void willInjectANewRandomValueEachTime() { } @RepeatedTest(5) - public void willNotInjectANewRandomValueEachTime() { + public void willNotInjectANewRandomValueEachTimeForAStaticField() { assertThat(anyStaticString, notNullValue()); - staticStringCollection.add(anyStaticString); - assertThat(staticStringCollection, is(hasSize(1))); + anyStaticStrings.add(anyStaticString); + assertThat(anyStaticStrings, is(hasSize(1))); } }