aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/test
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2013-01-28 13:57:03 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2013-01-28 13:57:03 +0000
commit5c5010f818b32b43f2c0c799ef062ef12bff66ca (patch)
tree298ff1a94f0740e446b2b1f3df1b1c5b562f4fa0 /pdf-as-lib/src/test
parentf9850d02d8559b7e7f3555d0e2c7cfe746257958 (diff)
downloadpdf-as-3-5c5010f818b32b43f2c0c799ef062ef12bff66ca.tar.gz
pdf-as-3-5c5010f818b32b43f2c0c799ef062ef12bff66ca.tar.bz2
pdf-as-3-5c5010f818b32b43f2c0c799ef062ef12bff66ca.zip
Maven build scripts enhanced.
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/pdf-as/trunk@928 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'pdf-as-lib/src/test')
-rw-r--r--pdf-as-lib/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java27
1 files changed, 10 insertions, 17 deletions
diff --git a/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java b/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java
index 8e66874..e8f8c55 100644
--- a/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java
+++ b/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/algorithmSuite/AlgorithmSuiteTest.java
@@ -25,13 +25,12 @@ package at.gv.egiz.pdfas.algorithmSuite;
import junit.framework.TestCase;
-
-
public class AlgorithmSuiteTest extends TestCase {
-
+
public void testAlgorithmMapper() throws Exception {
assertEquals("dsa-sha1", AlgorithmMapper.getAbbreviation("http://www.w3.org/2000/09/xmldsig#dsa-sha1"));
- assertEquals("ecdsa-sha512", AlgorithmMapper.getAbbreviation("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512"));
+ assertEquals("ecdsa-sha512",
+ AlgorithmMapper.getAbbreviation("http://www.w3.org/2001/04/xmldsig-more#ecdsa-sha512"));
assertEquals("sha256", AlgorithmMapper.getAbbreviation("http://www.w3.org/2001/04/xmlenc#sha256"));
assertEquals("http://www.w3.org/2001/04/xmldsig-more#md5", AlgorithmMapper.getUri("md5"));
@@ -44,7 +43,6 @@ public class AlgorithmSuiteTest extends TestCase {
} catch (Exception e) {
// expected
}
-
}
public void testAlgObject() {
@@ -62,13 +60,13 @@ public class AlgorithmSuiteTest extends TestCase {
assertEquals("ripemd160", as.getCertDigestMethod());
assertEquals("ripemd160", as.getDataDigestMethod());
assertEquals("ripemd160", as.getPropertiesDigestMethod());
-
- 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("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());
@@ -80,11 +78,6 @@ public class AlgorithmSuiteTest extends TestCase {
assertEquals("sha1", as.getDataDigestMethod());
assertEquals("sha1", as.getPropertiesDigestMethod());
-
-
-
}
-
-
}