Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ class SentryAutoConfigurationTest {
}

@Test
fun `OptionsConfiguration is created if custom one with name "sentryOptionsConfiguration" is not provided`() {
fun `OptionsConfiguration is created if custom one with name sentryOptionsConfiguration is not provided`() {
contextRunner.withPropertyValues("sentry.dsn=http://key@localhost/proj")
.run {
assertThat(it).hasSingleBean(Sentry.OptionsConfiguration::class.java)
}
}

@Test
fun `OptionsConfiguration with name "sentryOptionsConfiguration" is created if another one with different name is provided`() {
fun `OptionsConfiguration with name sentryOptionsConfiguration is created if another one with different name is provided`() {
contextRunner.withPropertyValues("sentry.dsn=http://key@localhost/proj")
.withUserConfiguration(CustomOptionsConfigurationConfiguration::class.java)
.run {
Expand All @@ -96,7 +96,7 @@ class SentryAutoConfigurationTest {
}

@Test
fun `"sentryOptionsConfiguration" bean is configured before custom OptionsConfiguration`() {
fun `sentryOptionsConfiguration bean is configured before custom OptionsConfiguration`() {
contextRunner.withPropertyValues("sentry.dsn=http://key@localhost/proj")
.withUserConfiguration(CustomOptionsConfigurationConfiguration::class.java)
.run {
Expand All @@ -106,7 +106,7 @@ class SentryAutoConfigurationTest {
}

@Test
fun `OptionsConfiguration is not created if custom one with name "sentryOptionsConfiguration" is provided`() {
fun `OptionsConfiguration is not created if custom one with name sentryOptionsConfiguration is provided`() {
contextRunner.withPropertyValues("sentry.dsn=http://key@localhost/proj")
.withUserConfiguration(OverridingOptionsConfigurationConfiguration::class.java)
.run {
Expand Down Expand Up @@ -163,7 +163,7 @@ class SentryAutoConfigurationTest {
assertThat(options.isAttachStacktrace).isEqualTo(true)
assertThat(options.serverName).isEqualTo("host-001")
assertThat(options.exceptionResolverOrder).isEqualTo(100)
assertThat(options.proxy).isNotNull()
assertThat(options.proxy).isNotNull
assertThat(options.proxy!!.host).isEqualTo("example.proxy.com")
assertThat(options.proxy!!.port).isEqualTo("8090")
assertThat(options.proxy!!.user).isEqualTo("proxy-user")
Expand Down