diff options
author | vasraz <vasyl.razinkov@est.tech> | 2021-03-30 10:16:14 +0100 |
---|---|---|
committer | Christophe Closset <christophe.closset@intl.att.com> | 2021-03-31 06:51:01 +0000 |
commit | 6a036699115dbf1658d7cee51dfc84356c47219f (patch) | |
tree | 8a766bb5566acc3545239ae93de110f7cb938a06 /common-app-api/src/test | |
parent | a6aac79ddd1ceb9fc1529dab5fae66f7c7efffdb (diff) |
Improve test coverage (GenerateEcompErrorsCsv)
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: I1c168522d10aca9991eb06772c08d90e11bf6130
Issue-ID: SDC-3428
Diffstat (limited to 'common-app-api/src/test')
-rw-r--r-- | common-app-api/src/test/java/org/openecomp/sdc/common/config/generation/GenerateEcompErrorsCsvTest.java | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/common-app-api/src/test/java/org/openecomp/sdc/common/config/generation/GenerateEcompErrorsCsvTest.java b/common-app-api/src/test/java/org/openecomp/sdc/common/config/generation/GenerateEcompErrorsCsvTest.java index e9fe964dc1..8206665f23 100644 --- a/common-app-api/src/test/java/org/openecomp/sdc/common/config/generation/GenerateEcompErrorsCsvTest.java +++ b/common-app-api/src/test/java/org/openecomp/sdc/common/config/generation/GenerateEcompErrorsCsvTest.java @@ -7,9 +7,9 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,25 +20,21 @@ package org.openecomp.sdc.common.config.generation; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; -public class GenerateEcompErrorsCsvTest { +class GenerateEcompErrorsCsvTest { private GenerateEcompErrorsCsv createTestSubject() { return new GenerateEcompErrorsCsv(); } - @Test - public void testGenerateEcompErrorsCsvFile() throws Exception { - GenerateEcompErrorsCsv testSubject; - String targetFolder = ""; - boolean addTimeToFileName = false; - boolean result; - - // default test - testSubject = createTestSubject(); - result = testSubject.generateEcompErrorsCsvFile(targetFolder, addTimeToFileName); + void generateEcompErrorFileInTargetTest() { + final GenerateEcompErrorsCsv ecompErrorsCsv = createTestSubject(); + Assertions.assertNotNull(ecompErrorsCsv); + final boolean result = ecompErrorsCsv.generateEcompErrorsCsvFile("target", true); + Assertions.assertTrue(result); } } |