From 0891ebeabf6c43e40cb3d6f2687e07f6483a7bc4 Mon Sep 17 00:00:00 2001 From: Scott Leberknight <174812+sleberknight@users.noreply.github.com> Date: Tue, 3 Sep 2024 15:45:59 -0400 Subject: [PATCH] Replace deprecated API usage in UrlHealthCheckTest (#531) * Replace RandomStringUtils.randomAlphabetic(...) with RandomStringUtils.secure().nextAlphabetic(...) --- .../kiwiproject/dropwizard/util/health/UrlHealthCheckTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/kiwiproject/dropwizard/util/health/UrlHealthCheckTest.java b/src/test/java/org/kiwiproject/dropwizard/util/health/UrlHealthCheckTest.java index f345717c..46824afd 100644 --- a/src/test/java/org/kiwiproject/dropwizard/util/health/UrlHealthCheckTest.java +++ b/src/test/java/org/kiwiproject/dropwizard/util/health/UrlHealthCheckTest.java @@ -54,7 +54,7 @@ void setUp() throws Exception { .hostnameVerifier(new NoopHostnameVerifier()) .build(); - description = RandomStringUtils.randomAlphabetic(15); + description = RandomStringUtils.secure().nextAlphabetic(15); url = server.url(STATUS_PATH).toString(); kiwiEnvironment = mock(KiwiEnvironment.class); }