Fix for FileNotFoundException in MsoLoggerTest 91/46191/2
authorMichal Kabaj <michal.kabaj@nokia.com>
Fri, 4 May 2018 11:30:59 +0000 (13:30 +0200)
committerRob Daugherty <rd472p@att.com>
Fri, 4 May 2018 17:33:16 +0000 (17:33 +0000)
Remove over 100 whitespaces from logger filename which causes the unit
tests to fail in some development environments.

Change-Id: I068f4d4562b635b19889c3537282949665348c21
Issue-ID: SO-604
Signed-off-by: Michal Kabaj <michal.kabaj@nokia.com>
common/src/test/java/org/openecomp/mso/adapter_utils/tests/MsoLoggerTest.java

index 1122c90..6ac7002 100644 (file)
@@ -87,7 +87,7 @@ public class MsoLoggerTest {
        public final void cleanAuditLogFile() throws FileNotFoundException {
                URL url = this.getClass().getClassLoader().getResource("logback-test.xml");
                String logFile = url.getFile().substring(0, url.getFile().indexOf("test-classes"))
-                               + "/MSO/Test/auditjbo                                                                                                                           ss.server.name_IS_UNDEFINED.log";
+                               + "/MSO/Test/auditjbo.server.name_IS_UNDEFINED.log";
                PrintWriter asdcConfigFileWriter = new PrintWriter(logFile);
                asdcConfigFileWriter.print("");
                asdcConfigFileWriter.flush();