From 2c8f4ec050c073a6b34ab74e212ffad71d2c34c2 Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 28 Nov 2024 02:19:32 +0100 Subject: [PATCH] Added check for isEncrypted == false as encrypted messages don't have a (readable) message body --- .../kotlin/net/codinux/invoicing/email/EmailsFetcherTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e-invoice-domain/src/test/kotlin/net/codinux/invoicing/email/EmailsFetcherTest.kt b/e-invoice-domain/src/test/kotlin/net/codinux/invoicing/email/EmailsFetcherTest.kt index a1d19ed..28f7b98 100644 --- a/e-invoice-domain/src/test/kotlin/net/codinux/invoicing/email/EmailsFetcherTest.kt +++ b/e-invoice-domain/src/test/kotlin/net/codinux/invoicing/email/EmailsFetcherTest.kt @@ -32,7 +32,7 @@ class EmailsFetcherTest { assertThat(result.overallError).isNull() assertThat(result.emails).isNotEmpty() - val emailsWithoutBody = result.emails.filter { it.plainTextOrHtmlBody == null } + val emailsWithoutBody = result.emails.filter { it.plainTextOrHtmlBody == null && it.isEncrypted == false } assertThat(emailsWithoutBody).isEmpty() }