summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine A <>2024-03-12 11:32:50 +0100
committerAntoine A <>2024-03-12 11:32:50 +0100
commitd5d5035d3740104acb38b1b0f95c1305f78bfd95 (patch)
treea43762bbaac67d4ffc677356bbab1a374e8c1fa0
parentd9142e97c0167e4231208e17f6a4379d30bf1c1a (diff)
downloadlibeufin-d5d5035d3740104acb38b1b0f95c1305f78bfd95.tar.gz
libeufin-d5d5035d3740104acb38b1b0f95c1305f78bfd95.tar.bz2
libeufin-d5d5035d3740104acb38b1b0f95c1305f78bfd95.zip
codespell
-rw-r--r--nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsCommon.kt4
-rw-r--r--nexus/src/test/kotlin/EbicsTest.kt2
2 files changed, 3 insertions, 3 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsCommon.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsCommon.kt
index 74c1dd32..ae4233c4 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsCommon.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/ebics/EbicsCommon.kt
@@ -125,7 +125,7 @@ suspend fun HttpClient.postToBank(bankUrl: String, msg: ByteArray, phase: String
try {
return XMLUtil.parseIntoDom(res.bodyAsChannel().toInputStream())
} catch (e: SAXException) {
- throw EbicsError.Protocol("$phase: invalid XML bank reponse", e)
+ throw EbicsError.Protocol("$phase: invalid XML bank response", e)
} catch (e: Exception) {
throw EbicsError.Transport("$phase: failed read bank response", e)
}
@@ -216,7 +216,7 @@ suspend fun ebicsDownload(
if (!parentScope.isActive) {
// First send a proper EBICS transaction failure
receipt(false)
- // Send throw cancelation exception
+ // Send throw cancellation exception
throw CancellationException()
}
}
diff --git a/nexus/src/test/kotlin/EbicsTest.kt b/nexus/src/test/kotlin/EbicsTest.kt
index a67a48d6..aa182a93 100644
--- a/nexus/src/test/kotlin/EbicsTest.kt
+++ b/nexus/src/test/kotlin/EbicsTest.kt
@@ -52,7 +52,7 @@ class EbicsTest {
respondOk("<ebics broken></ebics>")
}.postToBank("http://ignored.example.com/", ByteArray(0), "Test")
}.run {
- assertEquals("Test: invalid XML bank reponse", message)
+ assertEquals("Test: invalid XML bank response", message)
assertEquals("Attribute name \"broken\" associated with an element type \"ebics\" must be followed by the ' = ' character.", cause!!.message)
}
getMockedClient {