diff options
Diffstat (limited to 'nexus/src/test/kotlin/EbicsTest.kt')
-rw-r--r-- | nexus/src/test/kotlin/EbicsTest.kt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/nexus/src/test/kotlin/EbicsTest.kt b/nexus/src/test/kotlin/EbicsTest.kt index c22a469c..a67a48d6 100644 --- a/nexus/src/test/kotlin/EbicsTest.kt +++ b/nexus/src/test/kotlin/EbicsTest.kt @@ -35,29 +35,29 @@ class EbicsTest { assertFailsWith<EbicsError.Transport> { getMockedClient { respondError(HttpStatusCode.NotFound) - }.postToBank("http://ignored.example.com/", ByteArray(0)) + }.postToBank("http://ignored.example.com/", ByteArray(0), "Test") }.run { - assertEquals("bank HTTP error: 404 Not Found", message) + assertEquals("Test: bank HTTP error: 404 Not Found", message) } assertFailsWith<EbicsError.Transport> { getMockedClient { throw Exception("Simulate failure") - }.postToBank("http://ignored.example.com/", ByteArray(0)) + }.postToBank("http://ignored.example.com/", ByteArray(0), "Test") }.run { - assertEquals("failed to contact bank", message) + assertEquals("Test: failed to contact bank", message) assertEquals("Simulate failure", cause!!.message) } assertFailsWith<EbicsError.Protocol> { getMockedClient { respondOk("<ebics broken></ebics>") - }.postToBank("http://ignored.example.com/", ByteArray(0)) + }.postToBank("http://ignored.example.com/", ByteArray(0), "Test") }.run { - assertEquals("invalid XML bank reponse", message) + assertEquals("Test: invalid XML bank reponse", message) assertEquals("Attribute name \"broken\" associated with an element type \"ebics\" must be followed by the ' = ' character.", cause!!.message) } getMockedClient { respondOk("<ebics></ebics>") - }.postToBank("http://ignored.example.com/", ByteArray(0)) + }.postToBank("http://ignored.example.com/", ByteArray(0), "Test") } // Tests that internal repr. of keys lead to valid PDF. |