Skip to content

Commit

Permalink
removes jetty dependency from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Coser committed Apr 10, 2020
1 parent 2e6de79 commit 46a1bcb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/kotlin/daikon/freemarker/HttpRenderTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package daikon.freemarker

import daikon.HttpServer
import org.assertj.core.api.Assertions.assertThat
import org.eclipse.jetty.http.MimeTypes.Type.TEXT_HTML_UTF_8
import org.junit.jupiter.api.Test
import topinambur.http

Expand Down Expand Up @@ -32,7 +31,7 @@ class HttpRenderTest {
.get("/") { _, res -> res.html("hello_to", hashMapOf("name" to "Bob")) }
.start().use {
val response = "http://localhost:4545/".http.get()
assertThat(response.header("Content-Type")).isEqualTo(TEXT_HTML_UTF_8.asString())
assertThat(response.header("Content-Type")).isEqualTo("text/html;charset=utf-8")
assertThat(response.body).isEqualTo("hello Bob")
}
}
Expand Down

0 comments on commit 46a1bcb

Please sign in to comment.