diff --git a/openig-core/src/test/java/org/forgerock/openig/thread/MdcScheduledExecutorServiceDelegateTest.java b/openig-core/src/test/java/org/forgerock/openig/thread/MdcScheduledExecutorServiceDelegateTest.java index 0326edd6..64c153d0 100644 --- a/openig-core/src/test/java/org/forgerock/openig/thread/MdcScheduledExecutorServiceDelegateTest.java +++ b/openig-core/src/test/java/org/forgerock/openig/thread/MdcScheduledExecutorServiceDelegateTest.java @@ -12,6 +12,7 @@ * information: "Portions copyright [year] [name of copyright owner]". * * Copyright 2016 ForgeRock AS. + * Portions copyright 2026 3A Systems,LLC */ package org.forgerock.openig.thread; @@ -84,7 +85,7 @@ public void shouldScheduleWithRunnableLongTimeUnit() throws Exception { doReturn(scheduledFuture).when(delegate()) .schedule(nullable(Runnable.class), eq(1L), eq(TimeUnit.SECONDS)); - assertThat(executorService().schedule(runnable, 1, TimeUnit.SECONDS)).isSameAs(scheduledFuture); + assertThat((Object)executorService().schedule(runnable, 1, TimeUnit.SECONDS)).isSameAs(scheduledFuture); verify(delegate()).schedule(runnableCapture.capture(), eq(1L), eq(TimeUnit.SECONDS)); assertThatCapturedRunnableIsMdcAware(); @@ -96,7 +97,7 @@ public void shouldScheduleWithCallableLongTimeUnit() throws Exception { doReturn(scheduledFuture).when(delegate()) .schedule(nullable(Callable.class), eq(1L), eq(TimeUnit.SECONDS)); - assertThat(executorService().schedule(callable, 1, TimeUnit.SECONDS)).isSameAs(scheduledFuture); + assertThat((Object)executorService().schedule(callable, 1, TimeUnit.SECONDS)).isSameAs(scheduledFuture); verify(delegate()).schedule(callableCapture.capture(), eq(1L), eq(TimeUnit.SECONDS)); assertThatCaptureCallableIsMdcAware(); @@ -107,7 +108,7 @@ public void shouldScheduleAtFixedRateWithRunnableLongTimeUnit() throws Exception doReturn(scheduledFuture).when(delegate()) .scheduleAtFixedRate(nullable(Runnable.class), eq(1L), eq(2L), eq(TimeUnit.SECONDS)); - assertThat(executorService().scheduleAtFixedRate(runnable, 1, 2, TimeUnit.SECONDS)).isSameAs(scheduledFuture); + assertThat((Object)executorService().scheduleAtFixedRate(runnable, 1, 2, TimeUnit.SECONDS)).isSameAs(scheduledFuture); verify(delegate()).scheduleAtFixedRate(runnableCapture.capture(), eq(1L), eq(2L), eq(TimeUnit.SECONDS)); assertThatCapturedRunnableIsMdcAware(); @@ -118,7 +119,7 @@ public void shouldScheduleWithFixedDelayWithRunnableLongTimeUnit() throws Except doReturn(scheduledFuture).when(delegate()) .scheduleWithFixedDelay(nullable(Runnable.class), eq(1L), eq(2L), eq(TimeUnit.SECONDS)); - assertThat(executorService().scheduleWithFixedDelay(runnable, 1, 2, TimeUnit.SECONDS)) + assertThat((Object)executorService().scheduleWithFixedDelay(runnable, 1, 2, TimeUnit.SECONDS)) .isSameAs(scheduledFuture); verify(delegate()).scheduleWithFixedDelay(runnableCapture.capture(), eq(1L), eq(2L), eq(TimeUnit.SECONDS)); diff --git a/openig-oauth2/src/test/java/org/forgerock/openig/filter/oauth2/client/ClientRegistrationFilterTest.java b/openig-oauth2/src/test/java/org/forgerock/openig/filter/oauth2/client/ClientRegistrationFilterTest.java index 121d386c..ad45b7cb 100644 --- a/openig-oauth2/src/test/java/org/forgerock/openig/filter/oauth2/client/ClientRegistrationFilterTest.java +++ b/openig-oauth2/src/test/java/org/forgerock/openig/filter/oauth2/client/ClientRegistrationFilterTest.java @@ -12,6 +12,7 @@ * information: "Portions Copyright [year] [name of copyright owner]". * * Copyright 2015-2016 ForgeRock AS. + * Portions Copyright 2026 3A Systems, LLC */ package org.forgerock.openig.filter.oauth2.client; @@ -149,7 +150,7 @@ public void shouldPerformDynamicRegistration() throws Exception { verify(handler).handle(eq(context), captor.capture()); Request request = captor.getValue(); assertThat(request.getMethod()).isEqualTo("POST"); - assertThat(request.getEntity().toString()).containsSequence("redirect_uris", "contact", "scopes"); + assertThat(request.getEntity().toString()).contains("redirect_uris", "contact", "scopes"); } @Test(expectedExceptions = RegistrationException.class) diff --git a/openig-openam/src/test/java/org/forgerock/openig/openam/PolicyEnforcementFilterTest.java b/openig-openam/src/test/java/org/forgerock/openig/openam/PolicyEnforcementFilterTest.java index 31a0ffaf..a465a9bc 100644 --- a/openig-openam/src/test/java/org/forgerock/openig/openam/PolicyEnforcementFilterTest.java +++ b/openig-openam/src/test/java/org/forgerock/openig/openam/PolicyEnforcementFilterTest.java @@ -393,7 +393,7 @@ private static Object[][] realms() { public static void shouldSucceedToCreateBaseUri(final String realm) throws Exception { assertThat(normalizeToJsonEndpoint(new URI("http://www.example.com:8090/openam/"), realm).toASCIIString()) .endsWith("/") - .containsSequence("http://www.example.com:8090/openam/json/", + .contains("http://www.example.com:8090/openam/json/", realm != null ? realm.trim() : ""); } diff --git a/pom.xml b/pom.xml index 547b2e4d..4fc6f048 100644 --- a/pom.xml +++ b/pom.xml @@ -1059,7 +1059,7 @@ org.openidentityplatform.openam openam - 16.0.5 + 16.0.6 pom import