X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ecomp-portal-BE-common%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fportalapp%2Fservice%2Fsessionmgt%2FSessionCommunicationTest.java;h=2fdf0fe1492ad17c3364c8dd2119f36c3a0b601a;hb=aa9b320ff93511280cf51b03d38fb9254af6b530;hp=4cd2205b91587d5bd04879b3e94949806cd14876;hpb=fe3a67c11b65d7989a6ef648c3f34eee8abe7394;p=portal.git diff --git a/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/service/sessionmgt/SessionCommunicationTest.java b/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/service/sessionmgt/SessionCommunicationTest.java index 4cd2205b..2fdf0fe1 100644 --- a/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/service/sessionmgt/SessionCommunicationTest.java +++ b/ecomp-portal-BE-common/src/test/java/org/onap/portalapp/service/sessionmgt/SessionCommunicationTest.java @@ -2,7 +2,7 @@ * ============LICENSE_START========================================== * ONAP Portal * =================================================================== - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * =================================================================== * * Unless otherwise specified, all software contained herein is licensed @@ -52,6 +52,9 @@ import org.onap.portalapp.portal.transport.OnboardingApp; import org.powermock.api.mockito.PowerMockito; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; +import org.slf4j.MDC; + +import com.att.eelf.configuration.Configuration; @RunWith(PowerMockRunner.class) @PrepareForTest({URL.class, HttpURLConnection.class}) @@ -137,5 +140,12 @@ public class SessionCommunicationTest { PowerMockito.when(huc.getResponseCode()).thenReturn(200); Boolean actual = sessionCommunication.timeoutSession(app, "test"); assertTrue(actual); - } + } + + @Test + public void clear() { + + sessionCommunication.clear(true); + + } }