From 72b29baac0c1f08b610fd4daf2078b43ee74b3d8 Mon Sep 17 00:00:00 2001 From: vasraz Date: Mon, 22 Feb 2021 14:01:13 +0000 Subject: Remove testNG dependencies Signed-off-by: Vasyl Razinkov Change-Id: Ib7632106f9fc0703a90ec3c41cebd5d22471adfd Issue-ID: SDC-3108 --- .../test/java/org/openecomp/sdc/common/utils/CommonUtilTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openecomp-be/lib/openecomp-common-lib/src/test/java') diff --git a/openecomp-be/lib/openecomp-common-lib/src/test/java/org/openecomp/sdc/common/utils/CommonUtilTest.java b/openecomp-be/lib/openecomp-common-lib/src/test/java/org/openecomp/sdc/common/utils/CommonUtilTest.java index e08238aa1f..e8b6efa683 100644 --- a/openecomp-be/lib/openecomp-common-lib/src/test/java/org/openecomp/sdc/common/utils/CommonUtilTest.java +++ b/openecomp-be/lib/openecomp-common-lib/src/test/java/org/openecomp/sdc/common/utils/CommonUtilTest.java @@ -20,20 +20,20 @@ import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.notNullValue; import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.Assert.fail; +import static org.junit.jupiter.api.Assertions.assertTrue; import static org.onap.sdc.tosca.services.CommonUtil.DEFAULT; import static org.onap.sdc.tosca.services.CommonUtil.UNDERSCORE_DEFAULT; -import static org.testng.Assert.assertTrue; import com.google.common.io.Files; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.Map; +import org.junit.Test; import org.openecomp.core.utilities.file.FileContentHandler; import org.openecomp.core.utilities.orchestration.OnboardingTypesEnum; import org.openecomp.sdc.common.errors.CoreException; import org.openecomp.sdc.common.zip.exception.ZipException; -import org.testng.annotations.Test; public class CommonUtilTest { private static final String VALID_ZIP_FILE_PATH = "src/test/resources/valid.zip"; @@ -70,7 +70,7 @@ public class CommonUtilTest { assertThat(fch.containsFile("file.two.yaml"), is(true)); } - @Test(expectedExceptions={CoreException.class}) + @Test(expected=CoreException.class) public void testValidateNoFolders() throws IOException { byte[] file = getFileAsBytes(VALID_ZIP_WITH_DIR_FILE_PATH); -- cgit 1.2.3-korg