summaryrefslogtreecommitdiffstats
path: root/src/test/java/org
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2022-02-01 12:45:04 +0100
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2022-02-01 12:45:04 +0100
commit2f72a6419dd1e20acf6e77a9276a6055892e732a (patch)
tree9d5563dd16e6e033058971eca18539102aa9d827 /src/test/java/org
parentnew dynamic header version (diff)
downloadUIC-barcode-2f72a6419dd1e20acf6e77a9276a6055892e732a.tar
UIC-barcode-2f72a6419dd1e20acf6e77a9276a6055892e732a.tar.gz
UIC-barcode-2f72a6419dd1e20acf6e77a9276a6055892e732a.tar.bz2
UIC-barcode-2f72a6419dd1e20acf6e77a9276a6055892e732a.tar.lz
UIC-barcode-2f72a6419dd1e20acf6e77a9276a6055892e732a.tar.xz
UIC-barcode-2f72a6419dd1e20acf6e77a9276a6055892e732a.tar.zst
UIC-barcode-2f72a6419dd1e20acf6e77a9276a6055892e732a.zip
Diffstat (limited to 'src/test/java/org')
-rw-r--r--src/test/java/org/uic/barcode/test/DynamicFrameFcbVersion3Test.java2
-rw-r--r--src/test/java/org/uic/barcode/test/DynamicFrameLOwLevelTest.java6
2 files changed, 2 insertions, 6 deletions
diff --git a/src/test/java/org/uic/barcode/test/DynamicFrameFcbVersion3Test.java b/src/test/java/org/uic/barcode/test/DynamicFrameFcbVersion3Test.java
index 4095d93..199a32d 100644
--- a/src/test/java/org/uic/barcode/test/DynamicFrameFcbVersion3Test.java
+++ b/src/test/java/org/uic/barcode/test/DynamicFrameFcbVersion3Test.java
@@ -135,7 +135,7 @@ public class DynamicFrameFcbVersion3Test {
int signatureCheck = 0;
try {
- signatureCheck = dec.validateLevel1(keyPair.getPublic(),null);
+ signatureCheck = dec.validateLevel1(keyPair.getPublic());
} catch (InvalidKeyException | NoSuchAlgorithmException | SignatureException | IllegalArgumentException
| UnsupportedOperationException | IOException | EncodingFormatException e) {
assert(false);
diff --git a/src/test/java/org/uic/barcode/test/DynamicFrameLOwLevelTest.java b/src/test/java/org/uic/barcode/test/DynamicFrameLOwLevelTest.java
index d354837..b8a851b 100644
--- a/src/test/java/org/uic/barcode/test/DynamicFrameLOwLevelTest.java
+++ b/src/test/java/org/uic/barcode/test/DynamicFrameLOwLevelTest.java
@@ -84,17 +84,13 @@ public class DynamicFrameLOwLevelTest {
}
- @Test public void testDynamicHeaderBarcodeDecoding() {
+ @Test public void testDynamicHeaderBarcodeDecodingV1() {
DynamicFrame barcode1 = SimpleDynamicFrameTestBarcode.getSimpleDynamicHeaderBarcode(algorithmOID, keyPair);
byte[] encoded = barcode1.encode();
DynamicFrame barcode = DynamicFrame.decode(encoded);
-
- int signatureCheck = barcode.validateLevel1(keyPair.getPublic());
-
- assert(signatureCheck == Constants.LEVEL1_VALIDATION_OK);
SimpleDynamicFrameTestBarcode.compareFrame(barcode1, barcode);