diff options
author | Antoine A <> | 2024-03-07 23:06:16 +0100 |
---|---|---|
committer | Antoine A <> | 2024-03-07 23:06:16 +0100 |
commit | ce979222b082f2d4d729ea150f0eec351325db8f (patch) | |
tree | 5a255de468b6b7c2730b056e5ab5cc6614072fb6 /nexus/src/test/kotlin/Ebics.kt | |
parent | 867490864a27a7a74b122c5a6fb3cd34fb3ec8ae (diff) | |
download | libeufin-ce979222b082f2d4d729ea150f0eec351325db8f.tar.gz libeufin-ce979222b082f2d4d729ea150f0eec351325db8f.tar.bz2 libeufin-ce979222b082f2d4d729ea150f0eec351325db8f.zip |
Replace JAXB everywhere
Diffstat (limited to 'nexus/src/test/kotlin/Ebics.kt')
-rw-r--r-- | nexus/src/test/kotlin/Ebics.kt | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/nexus/src/test/kotlin/Ebics.kt b/nexus/src/test/kotlin/Ebics.kt index a1c86f20..7bd05fa7 100644 --- a/nexus/src/test/kotlin/Ebics.kt +++ b/nexus/src/test/kotlin/Ebics.kt @@ -21,36 +21,12 @@ import io.ktor.client.engine.mock.* import io.ktor.http.* import org.junit.Test import tech.libeufin.ebics.XMLUtil -import tech.libeufin.ebics.ebics_h004.EbicsUnsecuredRequest import tech.libeufin.nexus.ebics.* import kotlin.io.path.Path import kotlin.io.path.writeBytes import kotlin.test.assertEquals class Ebics { - // Checks XML is valid and INI. - @Test - fun iniMessage() = conf { config -> - val msg = generateIniMessage(config, clientKeys) - val ini = XMLUtil.convertToJaxb<EbicsUnsecuredRequest>(msg.inputStream()) // ensures is valid - assertEquals(ini.value.header.static.orderDetails.orderType, "INI") // ensures is INI - } - - // Checks XML is valid and HIA. - @Test - fun hiaMessage() = conf { config -> - val msg = generateHiaMessage(config, clientKeys) - val ini = XMLUtil.convertToJaxb<EbicsUnsecuredRequest>(msg.inputStream()) // ensures is valid - assertEquals(ini.value.header.static.orderDetails.orderType, "HIA") // ensures is HIA - } - - // Checks XML is valid and HPB. - @Test - fun hpbMessage() = conf { config -> - val msg = generateHpbMessage(config, clientKeys) - val ini = XMLUtil.convertToJaxb<EbicsUnsecuredRequest>(msg.inputStream()) // ensures is valid - assertEquals(ini.value.header.static.orderDetails.orderType, "HPB") // ensures is HPB - } // POSTs an EBICS message to the mock bank. Tests // the main branches: unreachable bank, non-200 status // code, and 200. |