Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
IlyasYOY committed Aug 9, 2022
1 parent dd089de commit e034c16
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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<String> staticStringCollection = new HashSet<>();
private static Collection<String> 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)));
}
}

0 comments on commit e034c16

Please sign in to comment.