~ubuntu-branches/ubuntu/precise/libxml-security-java/precise-security

« back to all changes in this revision

Viewing changes to src_unitTests/org/apache/xml/security/test/interop/BaltimoreTest.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-08-30 14:07:46 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: package-import@ubuntu.com-20110830140746-wfmiluk1yddqd6ch
* New upstream release
* Update debian/watch to point to new SVN repo.
* Update Standards-Version: 3.9.1.
* Switch to source format 3.0.
* Use Maven to build the package. Ignore test failures.
* Update Description.
* Add a documentation package.
* Update Homepage field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 1999-2009 The Apache Software Foundation.
 
2
 * Copyright 1999-2010 The Apache Software Foundation.
3
3
 *
4
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
5
5
 *  you may not use this file except in compliance with the License.
28
28
 * from Baltimore using KeyTools XML. These test vectors are located in the directory
29
29
 * <CODE>data/ie/baltimore/merlin-examples/</CODE>.
30
30
 *
31
 
 * @author $Author: mullan $
 
31
 * @author $Author: coheigea $
32
32
 * @see <A HREF="http://www.baltimore.com/keytools/xml/index.html">The KeyTools XML Website</A>
33
33
 */
34
34
public class BaltimoreTest extends InteropTest {
106
106
      ResourceResolverSpi resolver = new OfflineResolver();
107
107
      boolean followManifests = false;
108
108
      byte[] hmacKey = "secret".getBytes("ASCII");
109
 
      boolean verify = false;
110
109
 
111
110
      try {
112
 
         verify = this.verifyHMAC(filename, resolver, followManifests, hmacKey);
 
111
         this.verifyHMAC(filename, resolver, followManifests, hmacKey);
113
112
         fail("HMACOutputLength Exception not caught");
114
113
      } catch (RuntimeException ex) {
115
114
         log.error("Verification crashed for " + filename);
365
364
      ResourceResolverSpi resolver = new OfflineResolver();
366
365
      boolean followManifests = false;
367
366
      byte[] hmacKey = "secret".getBytes("ASCII");
368
 
      boolean verify = false;
369
367
 
370
368
      try {
371
 
         verify = this.verifyHMAC(filename, resolver, followManifests, hmacKey);
 
369
         this.verifyHMAC(filename, resolver, followManifests, hmacKey);
372
370
         fail("HMACOutputLength Exception not caught");
373
371
      } catch (RuntimeException ex) {
374
372
         log.error("Verification crashed for " + filename);