libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit a80e09e4156f77bdd6c4c8708136b5dfd9c01c0e
parent 48660ac2b778976be71713799c408df465fa7999
Author: MS <ms@taler.net>
Date:   Mon, 20 Jul 2020 16:18:30 +0200

remove always-true test

Diffstat:
Mnexus/src/test/kotlin/Iso20022Test.kt | 1-
Mutil/src/main/kotlin/XmlCombinators.kt | 3+--
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/nexus/src/test/kotlin/Iso20022Test.kt b/nexus/src/test/kotlin/Iso20022Test.kt @@ -36,7 +36,6 @@ class Iso20022Test { requireOnlyChild { } } } - } @Test fun testTransactionsImport() { diff --git a/util/src/main/kotlin/XmlCombinators.kt b/util/src/main/kotlin/XmlCombinators.kt @@ -130,8 +130,7 @@ private fun Element.getChildElements(ns: String, tag: String): List<Element> { class XmlElementDestructor internal constructor(val d: Document, val e: Element) { fun <T> requireOnlyChild(f: XmlElementDestructor.(e: Element) -> T): T { val children = e.getChildElements("*", "*") - if (children.size != 1) throw DestructionError("expected singleton child tag (2+ found)") - if (children[0] == null) throw DestructionError("expected singleton child tag (none found)") + if (children.size != 1) throw DestructionError("expected singleton child tag") val destr = XmlElementDestructor(d, children[0]) return f(destr, children[0]) }