From abac4aec9788b0509b5379e5ba910d1370d4f8cd Mon Sep 17 00:00:00 2001 From: Gerhard Muth Date: Wed, 2 Oct 2024 08:56:06 +0200 Subject: [PATCH] fixed test for pretty toString() output --- .../kotlin/de/gmuth/ipp/core/IppAttributesGroupTests.kt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/test/kotlin/de/gmuth/ipp/core/IppAttributesGroupTests.kt b/src/test/kotlin/de/gmuth/ipp/core/IppAttributesGroupTests.kt index 0238f8e1..4cdaa183 100644 --- a/src/test/kotlin/de/gmuth/ipp/core/IppAttributesGroupTests.kt +++ b/src/test/kotlin/de/gmuth/ipp/core/IppAttributesGroupTests.kt @@ -10,10 +10,7 @@ import java.io.File import java.io.PrintWriter import java.time.ZoneId import java.util.logging.Logger.getLogger -import kotlin.test.Test -import kotlin.test.assertEquals -import kotlin.test.assertFailsWith -import kotlin.test.assertTrue +import kotlin.test.* class IppAttributesGroupTests { @@ -70,7 +67,7 @@ class IppAttributesGroupTests { @Test fun toStringValue() { - assertEquals("'operation-attributes-tag' 0 attributes", group.toString()) + assertEquals("operation group (0 attributes)", group.toString()) } @Test @@ -139,7 +136,7 @@ class IppAttributesGroupTests { } @Test - fun writeAttributesWithoutTitle() { + fun writeTextWithoutTitle() { group.writeText(PrintWriter(java.lang.System.out), null) }