diff --git a/modules/apps/portal-security-sso/portal-security-sso-openid-connect-impl/src/test/java/com/liferay/portal/security/sso/openid/connect/internal/OpenIdConnectAuthenticationHandlerImplTest.java b/modules/apps/portal-security-sso/portal-security-sso-openid-connect-impl/src/test/java/com/liferay/portal/security/sso/openid/connect/internal/OpenIdConnectAuthenticationHandlerImplTest.java index 5f66614fbbb5c4..d24b1557e50077 100644 --- a/modules/apps/portal-security-sso/portal-security-sso-openid-connect-impl/src/test/java/com/liferay/portal/security/sso/openid/connect/internal/OpenIdConnectAuthenticationHandlerImplTest.java +++ b/modules/apps/portal-security-sso/portal-security-sso-openid-connect-impl/src/test/java/com/liferay/portal/security/sso/openid/connect/internal/OpenIdConnectAuthenticationHandlerImplTest.java @@ -5,7 +5,6 @@ package com.liferay.portal.security.sso.openid.connect.internal; -import com.liferay.petra.function.UnsafeConsumer; import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.json.JSONUtil; import com.liferay.portal.test.rule.LiferayUnitTestRule; @@ -15,6 +14,7 @@ import java.util.Map; +import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.ClassRule; @@ -23,10 +23,6 @@ import org.mockito.Mockito; -import org.springframework.mock.web.MockHttpServletRequest; -import org.springframework.mock.web.MockHttpServletResponse; -import org.springframework.mock.web.MockHttpSession; - /** * @author Tamas Biro */ @@ -41,16 +37,11 @@ public class OpenIdConnectAuthenticationHandlerImplTest { public void setUp() { _openIdConnectAuthenticationHandlerImpl = new OpenIdConnectAuthenticationHandlerImpl(); - _mockHttpServletRequest = new MockHttpServletRequest(); - _mockHttpServletResponse = new MockHttpServletResponse(); - _mockHttpSession = new MockHttpSession(); - _userIdUnsafeConsumer = new UnsafeConsumer() { - - @Override - public void accept(Long aLong) { - } + } - }; + @After + public void tearDown() { + _jsonObject = null; } @Test @@ -97,11 +88,7 @@ private Map _processClaimSet(String claimSetJSON) } private JSONObject _jsonObject; - private MockHttpServletRequest _mockHttpServletRequest; - private MockHttpServletResponse _mockHttpServletResponse; - private MockHttpSession _mockHttpSession; private OpenIdConnectAuthenticationHandlerImpl _openIdConnectAuthenticationHandlerImpl; - private UnsafeConsumer _userIdUnsafeConsumer; } \ No newline at end of file