From 81799663f9c78bc5c0c174d5edf059f8fdb3de70 Mon Sep 17 00:00:00 2001 From: Alexander Dinauer Date: Wed, 27 Sep 2023 08:54:41 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Lukas Bloder --- .../sentry/spring/jakarta/SentryCheckInAdviceTest.kt | 10 +++++----- .../kotlin/io/sentry/spring/SentryCheckInAdviceTest.kt | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/sentry-spring-jakarta/src/test/kotlin/io/sentry/spring/jakarta/SentryCheckInAdviceTest.kt b/sentry-spring-jakarta/src/test/kotlin/io/sentry/spring/jakarta/SentryCheckInAdviceTest.kt index b44555ba2f..06f1da81a1 100644 --- a/sentry-spring-jakarta/src/test/kotlin/io/sentry/spring/jakarta/SentryCheckInAdviceTest.kt +++ b/sentry-spring-jakarta/src/test/kotlin/io/sentry/spring/jakarta/SentryCheckInAdviceTest.kt @@ -48,7 +48,7 @@ class SentryCheckInAdviceTest { } @Test - fun `when class is annotated with @SentryCheckIn, every method call creates two check-ins`() { + fun `when method is annotated with @SentryCheckIn, every method call creates two check-ins`() { val checkInId = SentryId() val checkInCaptor = argumentCaptor() whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId) @@ -66,7 +66,7 @@ class SentryCheckInAdviceTest { } @Test - fun `when class is annotated with @SentryCheckIn, every method call creates two check-ins error`() { + fun `when method is annotated with @SentryCheckIn, every method call creates two check-ins error`() { val checkInId = SentryId() val checkInCaptor = argumentCaptor() whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId) @@ -85,7 +85,7 @@ class SentryCheckInAdviceTest { } @Test - fun `when class is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end`() { + fun `when method is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end`() { val checkInId = SentryId() val checkInCaptor = argumentCaptor() whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId) @@ -100,7 +100,7 @@ class SentryCheckInAdviceTest { } @Test - fun `when class is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end with error`() { + fun `when method is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end with error`() { val checkInId = SentryId() val checkInCaptor = argumentCaptor() whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId) @@ -116,7 +116,7 @@ class SentryCheckInAdviceTest { } @Test - fun `when class is annotated with @SentryCheckIn but slug is missing, does not create check-in`() { + fun `when method is annotated with @SentryCheckIn but slug is missing, does not create check-in`() { val checkInId = SentryId() val checkInCaptor = argumentCaptor() whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId) diff --git a/sentry-spring/src/test/kotlin/io/sentry/spring/SentryCheckInAdviceTest.kt b/sentry-spring/src/test/kotlin/io/sentry/spring/SentryCheckInAdviceTest.kt index ed5d9f63e5..d71ed0d61b 100644 --- a/sentry-spring/src/test/kotlin/io/sentry/spring/SentryCheckInAdviceTest.kt +++ b/sentry-spring/src/test/kotlin/io/sentry/spring/SentryCheckInAdviceTest.kt @@ -48,7 +48,7 @@ class SentryCheckInAdviceTest { } @Test - fun `when class is annotated with @SentryCheckIn, every method call creates two check-ins`() { + fun `when method is annotated with @SentryCheckIn, every method call creates two check-ins`() { val checkInId = SentryId() val checkInCaptor = argumentCaptor() whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId) @@ -66,7 +66,7 @@ class SentryCheckInAdviceTest { } @Test - fun `when class is annotated with @SentryCheckIn, every method call creates two check-ins error`() { + fun `when method is annotated with @SentryCheckIn, every method call creates two check-ins error`() { val checkInId = SentryId() val checkInCaptor = argumentCaptor() whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId) @@ -85,7 +85,7 @@ class SentryCheckInAdviceTest { } @Test - fun `when class is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end`() { + fun `when method is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end`() { val checkInId = SentryId() val checkInCaptor = argumentCaptor() whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId) @@ -100,7 +100,7 @@ class SentryCheckInAdviceTest { } @Test - fun `when class is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end with error`() { + fun `when method is annotated with @SentryCheckIn and heartbeat only, every method call creates only one check-in at the end with error`() { val checkInId = SentryId() val checkInCaptor = argumentCaptor() whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId) @@ -116,7 +116,7 @@ class SentryCheckInAdviceTest { } @Test - fun `when class is annotated with @SentryCheckIn but slug is missing, does not create check-in`() { + fun `when method is annotated with @SentryCheckIn but slug is missing, does not create check-in`() { val checkInId = SentryId() val checkInCaptor = argumentCaptor() whenever(hub.captureCheckIn(checkInCaptor.capture())).thenReturn(checkInId)