From 43dfbc4b7f51c8f85e528f43efc43ef02bf8b8c6 Mon Sep 17 00:00:00 2001 From: Leonid Stashevsky Date: Wed, 31 Aug 2022 15:05:25 +0200 Subject: [PATCH] KTOR-4770 Fix exception message --- .../jvmAndNix/test/RequestConverterTest.kt | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/ktor-server/ktor-server-plugins/ktor-server-content-negotiation/jvmAndNix/test/RequestConverterTest.kt b/ktor-server/ktor-server-plugins/ktor-server-content-negotiation/jvmAndNix/test/RequestConverterTest.kt index a90ac45520..6ab98e4b09 100644 --- a/ktor-server/ktor-server-plugins/ktor-server-content-negotiation/jvmAndNix/test/RequestConverterTest.kt +++ b/ktor-server/ktor-server-plugins/ktor-server-content-negotiation/jvmAndNix/test/RequestConverterTest.kt @@ -1,3 +1,7 @@ +/* + * Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. + */ + package io.ktor.server.plugins.contentnegotiation import io.ktor.client.request.* @@ -14,10 +18,6 @@ import io.ktor.utils.io.* import io.ktor.utils.io.charsets.* import kotlin.test.* -/* - * Copyright 2014-2022 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license. - */ - class RequestConverterTest { @Test @@ -76,14 +76,7 @@ class RequestConverterTest { contentType(ContentType.Application.Json) } - assertEquals( - "No suitable converter found for TypeInfo(" + - "type=class io.ktor.server.plugins.contentnegotiation.SerializableClass, " + - "reifiedType=class io.ktor.server.plugins.contentnegotiation.SerializableClass, " + - "kotlinType=io.ktor.server.plugins.contentnegotiation.SerializableClass" + - ")", - responseBar.bodyAsText() - ) + assertTrue(responseBar.bodyAsText().startsWith("No suitable converter found for TypeInfo")) assertTrue(used) } }