Skip to content

Commit

Permalink
more assertions for Web MVC initializer (#68)
Browse files Browse the repository at this point in the history
more assertions for Web MVC initalizer
  • Loading branch information
sullis authored Aug 14, 2024
1 parent f8f5424 commit 539f9ea
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ class WebmvcInitializerTest {

}
test {
assertThat(getBeanProvider<JettyServletWebServerFactory>().firstOrNull()).isNotNull
val factory = getBeanProvider<JettyServletWebServerFactory>().first()
assertThat(factory).isNotNull
assertThat(factory.compression!!.enabled).isFalse
assertThat(factory.http2!!.isEnabled).isFalse
assertThat(factory.ssl).isNull()
}
}
}
Expand All @@ -41,7 +45,11 @@ class WebmvcInitializerTest {

}
test {
assertThat(getBeanProvider<TomcatServletWebServerFactory>().firstOrNull()).isNotNull
val factory = getBeanProvider<TomcatServletWebServerFactory>().first()
assertThat(factory).isNotNull
assertThat(factory.compression!!.enabled).isFalse
assertThat(factory.http2!!.isEnabled).isFalse
assertThat(factory.ssl).isNull()
}
}
}
Expand Down

0 comments on commit 539f9ea

Please sign in to comment.