diff options
Diffstat (limited to 'testbench/src/test/kotlin/Iso20022Test.kt')
-rw-r--r-- | testbench/src/test/kotlin/Iso20022Test.kt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testbench/src/test/kotlin/Iso20022Test.kt b/testbench/src/test/kotlin/Iso20022Test.kt index 481961c0..d44596c6 100644 --- a/testbench/src/test/kotlin/Iso20022Test.kt +++ b/testbench/src/test/kotlin/Iso20022Test.kt @@ -24,6 +24,22 @@ import kotlin.io.path.* class Iso20022Test { @Test + fun sample() { + for (sample in Path("sample").listDirectoryEntries()) { + val content = Files.newInputStream(sample) + val name = sample.toString() + println(name) + if (name.contains("HAC")) { + parseCustomerAck(content) + } else if (name.contains("pain.002")) { + parseCustomerPaymentStatusReport(content) + } else { + parseTxNotif(content, "CHF", mutableListOf(), mutableListOf()) + } + } + } + + @Test fun logs() { val root = Path("test") if (!root.exists()) return; |