Skip to content

Commit

Permalink
KTOR-4770 Fix exception message (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
e5l committed Aug 31, 2022
1 parent 9bf1ff9 commit 67ba0f2
Showing 1 changed file with 5 additions and 12 deletions.
@@ -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.*
Expand All @@ -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
Expand Down Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 67ba0f2

Please sign in to comment.