diff options
Diffstat (limited to 'ecomp-sdk/epsdk-core/src/test')
2 files changed, 2 insertions, 35 deletions
diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/aspect/EELFLoggerAspectTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/aspect/EELFLoggerAspectTest.java index fb3dc079..a81de613 100644 --- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/aspect/EELFLoggerAspectTest.java +++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/aspect/EELFLoggerAspectTest.java @@ -93,40 +93,6 @@ public class EELFLoggerAspectTest { } @Test - public void publicMethodTst(){ - eelFLoggerAspect.publicMethod(); - Assert.assertTrue(true); - } - - @Test - public void logMetricsClassAroundTest() throws Throwable { - ProceedingJoinPoint joinPoint = Mockito.mock(ProceedingJoinPoint.class); - MetricsLog mockLog = Mockito.mock(MetricsLog.class); - Signature sign = Mockito.mock(Signature.class); - - Mockito.when(joinPoint.getSignature()).thenReturn(sign); - Mockito.when(sign.getDeclaringType()).thenReturn(getClass()); - Mockito.when(sign.getName()).thenReturn("MethodName"); - - eelFLoggerAspect.logMetricsClassAround(joinPoint, mockLog); - Assert.assertTrue(true); - } - - @Test - public void logMetricsMethodAroundTest() throws Throwable { - ProceedingJoinPoint joinPoint = Mockito.mock(ProceedingJoinPoint.class); - MetricsLog mockLog = Mockito.mock(MetricsLog.class); - Signature sign = Mockito.mock(Signature.class); - - Mockito.when(joinPoint.getSignature()).thenReturn(sign); - Mockito.when(sign.getDeclaringType()).thenReturn(getClass()); - Mockito.when(sign.getName()).thenReturn("MethodName"); - - eelFLoggerAspect.logMetricsMethodAround(joinPoint, mockLog); - Assert.assertTrue(true); - } - - @Test public void performMetricsLoggingTest() { eelFLoggerAspect.performMetricsLogging(); Assert.assertTrue(true); diff --git a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegateTest.java b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegateTest.java index 322e3c6b..2d1187f9 100644 --- a/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegateTest.java +++ b/ecomp-sdk/epsdk-core/src/test/java/org/onap/portalsdk/core/logging/logic/EELFLoggerDelegateTest.java @@ -241,7 +241,8 @@ public class EELFLoggerDelegateTest { @Test public void initTest(){ EELFLoggerDelegate eelFLoggerDelegate = new EELFLoggerDelegate(getClass().getName()); - eelFLoggerDelegate.init(SystemProperties.getProperty(SystemProperties.APPLICATION_NAME)); + String appName = "PortalSDK"; + eelFLoggerDelegate.init(appName); Assert.assertTrue(true); } |