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) } }