From 703d8ded0f42d445b38dbc84ae2a376bfc31b141 Mon Sep 17 00:00:00 2001 From: clemenso Date: Tue, 2 Feb 2010 17:10:20 +0000 Subject: SignatureLocation index bug git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@620 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../at/gv/egiz/bku/slcommands/impl/xsect/SignatureTest.java | 12 +++++++----- .../gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_1.xml | 2 +- .../gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_2.xml | 2 +- .../gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_3.xml | 2 +- .../egiz/bku/slcommands/impl/SignatureInfo_Reference_1.xml | 2 +- .../egiz/bku/slcommands/impl/SignatureInfo_XMLContent_1.xml | 2 +- 6 files changed, 12 insertions(+), 10 deletions(-) (limited to 'bkucommon') diff --git a/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureTest.java b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureTest.java index ccd29e85..0a34c8f3 100644 --- a/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureTest.java +++ b/bkucommon/src/test/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureTest.java @@ -79,6 +79,8 @@ import at.gv.egiz.dom.DOMUtils; import at.gv.egiz.slbinding.RedirectEventFilter; import at.gv.egiz.slbinding.RedirectUnmarshallerListener; import org.junit.Ignore; +import org.w3c.dom.NodeList; +import static org.junit.Assert.*; public class SignatureTest { @@ -271,7 +273,7 @@ public class SignatureTest { assertNotNull(nextSibling); assertTrue("urn:document".equals(nextSibling.getNamespaceURI())); assertTrue("Paragraph".equals(nextSibling.getLocalName())); - + } @Test @@ -311,7 +313,7 @@ public class SignatureTest { assertNotNull(nextSibling); assertTrue("Paragraph".equals(nextSibling.getLocalName())); - + } @Test @@ -325,13 +327,13 @@ public class SignatureTest { Node parent = signature.getParent(); Node nextSibling = signature.getNextSibling(); - + assertNotNull(parent); assertTrue("urn:document".equals(parent.getNamespaceURI())); assertTrue("Whole".equals(parent.getLocalName())); - + assertNull(nextSibling); - + } @Test diff --git a/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_1.xml b/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_1.xml index dac81be7..7cf3f098 100644 --- a/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_1.xml +++ b/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_1.xml @@ -18,6 +18,6 @@ cnN0ZSBBYnNhdHogaW4gZGllc2VtIERva3VtZW50LjwvZG9jOlBhcmFncmFwaD4NCiAgPGRvYzpQ YXJhZ3JhcGg+VW5kIGljaCBiaW4gZGVyIHp3ZWl0ZSBBYnNhdHogaW4gZGllc2VtIERva3VtZW50 LjwvZG9jOlBhcmFncmFwaD4NCjwvZG9jOlhNTERvY3VtZW50Pg0K - /doc:XMLDocument + /doc:XMLDocument \ No newline at end of file diff --git a/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_2.xml b/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_2.xml index 7d8c7c01..69373acc 100644 --- a/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_2.xml +++ b/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_2.xml @@ -8,7 +8,7 @@ cmFwaD4NCiAgICA8UGFyYWdyYXBoIFBhcmFJZD0iUGFyYTIiPlVuZCBpY2ggYmluIGRlciB6d2Vp dGUgQWJzYXR6IGluIGRpZXNlbSBEb2t1bWVudC4NCiAgICBJY2ggaGFiZSB3ZWl0ZXJzIGVpbiBl aWdlbmVucyBJRC1BdHRyaWJ1dCBiZWtvbW1lbi48L1BhcmFncmFwaD4NCjwvWE1MRG9jdW1lbnQ+ - /XMLDocument + /XMLDocument testlocal:Document.dtd diff --git a/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_3.xml b/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_3.xml index 91425a93..c3d8ba26 100644 --- a/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_3.xml +++ b/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Base64_3.xml @@ -8,7 +8,7 @@ cmFwaD4NCiAgICA8UGFyYWdyYXBoIFBhcmFJZD0iUGFyYTIiPlVuZCBpY2ggYmluIGRlciB6d2Vp dGUgQWJzYXR6IGluIGRpZXNlbSBEb2t1bWVudC4NCiAgICBJY2ggaGFiZSB3ZWl0ZXJzIGVpbiBl aWdlbmVucyBJRC1BdHRyaWJ1dCBiZWtvbW1lbi48L1BhcmFncmFwaD4NCjwvWE1MRG9jdW1lbnQ+ - /XMLDocument + /XMLDocument PCFFTEVNRU5UIFhNTERvY3VtZW50ICgjUENEQVRBIHwgUGFyYWdyYXBoKSo+DQo8IUVMRU1FTlQg diff --git a/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Reference_1.xml b/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Reference_1.xml index d1589f24..98a77fb1 100644 --- a/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Reference_1.xml +++ b/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_Reference_1.xml @@ -1,7 +1,7 @@ - id("Para2") + id("Para2") testlocal:XMLDocument.xsd diff --git a/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_XMLContent_1.xml b/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_XMLContent_1.xml index 79e91992..e0a97e33 100644 --- a/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_XMLContent_1.xml +++ b/bkucommon/src/test/resources/at/gv/egiz/bku/slcommands/impl/SignatureInfo_XMLContent_1.xml @@ -8,6 +8,6 @@ - /doc:Whole + /doc:Whole \ No newline at end of file -- cgit v1.2.3