diff --git a/src/test/java/org/kiwiproject/base/KiwiPreconditionsTest.java b/src/test/java/org/kiwiproject/base/KiwiPreconditionsTest.java index 6469a3ff..6e1ab8a4 100644 --- a/src/test/java/org/kiwiproject/base/KiwiPreconditionsTest.java +++ b/src/test/java/org/kiwiproject/base/KiwiPreconditionsTest.java @@ -1709,9 +1709,9 @@ void shouldThrow_WhenArgumentIsInstanceOfRestrictedType(Object argument, Class instanceOfArguments() { return Stream.of( - Arguments.of(RandomStringUtils.random(5), Object.class), - Arguments.of(RandomStringUtils.random(15), String.class), - Arguments.of(RandomStringUtils.random(10), CharSequence.class), + Arguments.of(RandomStringUtils.secure().next(5), Object.class), + Arguments.of(RandomStringUtils.secure().next(15), String.class), + Arguments.of(RandomStringUtils.secure().next(10), CharSequence.class), Arguments.of(random().nextLong(), Long.class), Arguments.of(random().nextInt(), Integer.class), Arguments.of(random().nextInt(), Number.class), @@ -1723,7 +1723,7 @@ static Stream instanceOfArguments() { static Stream notInstanceOfArguments() { return Stream.of( - Arguments.of(RandomStringUtils.random(15), Long.class), + Arguments.of(RandomStringUtils.secure().next(15), Long.class), Arguments.of(random().nextLong(), String.class), Arguments.of(random().nextInt(), Collection.class), Arguments.of(Instant.now(), Date.class),