From 6e6360d736ae02ba4bd62dbbf3f6e60d9666b08f Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Fri, 17 May 2024 13:08:14 +0200 Subject: deprecated tests which are used for deprecated functions only. --- .../java/org/uic/barcode/test/SecurityUtilsTest.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/test') diff --git a/src/test/java/org/uic/barcode/test/SecurityUtilsTest.java b/src/test/java/org/uic/barcode/test/SecurityUtilsTest.java index e500523..eb7df67 100644 --- a/src/test/java/org/uic/barcode/test/SecurityUtilsTest.java +++ b/src/test/java/org/uic/barcode/test/SecurityUtilsTest.java @@ -14,6 +14,7 @@ import java.security.SignatureException; import java.security.spec.ECGenParameterSpec; import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; import org.uic.barcode.dynamicFrame.Constants; import org.uic.barcode.utils.AlgorithmNameResolver; @@ -60,8 +61,11 @@ public class SecurityUtilsTest { - - @Test public void testFindPublicKeyProvider() { + // functions without an explicitly set provider have been deprecated in the library. + @Deprecated + @Test + @Ignore + public void testFindPublicKeyProvider() { Provider p = null; @@ -97,9 +101,11 @@ public class SecurityUtilsTest { - - - @Test public void testFindSignatureAlgorithmProvider() { + // functions without an explicitly set provider have been deprecated in the library. + @Deprecated + @Test + @Ignore + public void testFindSignatureAlgorithmProvider() { Provider p = null; boolean canSign = false; -- cgit v1.2.3