From 173a54ff1c4112291e8e97650367ac2e0be1be47 Mon Sep 17 00:00:00 2001 From: ferbas Date: Fri, 13 Nov 2009 13:19:33 +0000 Subject: git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@419 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/test/java/at/gv/egiz') diff --git a/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java b/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java index 334c97d..ca0fe3b 100644 --- a/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java +++ b/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java @@ -1,5 +1,7 @@ package at.gv.egiz.pdfas.algorithmSuite; +import javax.sound.midi.SysexMessage; + import junit.framework.TestCase; @@ -39,6 +41,14 @@ public class AlgorithmSuiteTest extends TestCase { assertEquals("ripemd160", as.getCertDigestMethod()); assertEquals("ripemd160", as.getDataDigestMethod()); assertEquals("ripemd160", as.getPropertiesDigestMethod()); + + System.err.println("?????????????????"); + as = new AlgorithmSuiteObject("ecdsa-sha1:ripemd160@207c44ff", false); + assertTrue(as.isSpecified()); + assertEquals("ecdsa-sha1", as.getSignatureMethod()); + assertEquals("ripemd160", as.getCertDigestMethod()); + assertEquals("ripemd160", as.getDataDigestMethod()); + assertEquals("ripemd160", as.getPropertiesDigestMethod()); as = new AlgorithmSuiteObject("etsi-bka-1.0@1254754266-364221555@10884-28158-0-19188-22825"); assertFalse(as.isSpecified()); -- cgit v1.2.3