You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sentry-spring-jakarta/src/main/java/io/sentry/spring/jakarta/kafka/SentryKafkaConsumerBeanPostProcessor.java
Copy file name to clipboardExpand all lines: sentry-spring-jakarta/src/test/kotlin/io/sentry/spring/jakarta/kafka/SentryKafkaConsumerBeanPostProcessorTest.kt
+4-25Lines changed: 4 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
packageio.sentry.spring.jakarta.kafka
2
2
3
3
importkotlin.test.Test
4
-
importkotlin.test.assertEquals
5
4
importkotlin.test.assertSame
6
5
importkotlin.test.assertTrue
7
6
importorg.apache.kafka.clients.consumer.Consumer
@@ -97,14 +96,6 @@ class SentryKafkaConsumerBeanPostProcessorTest {
97
96
98
97
@Test
99
98
fun`skips installation when reflection fails and preserves customer interceptor`() {
100
-
// Subclass whose declared 'recordInterceptor' field does not exist on the
101
-
// AbstractKafkaListenerContainerFactory class lookup path — this simulates the
102
-
// future-spring-kafka case where the private field is renamed/removed.
103
-
// We can't easily corrupt JDK reflection, so we instead verify the chosen
104
-
// contract: when reflection succeeds and yields a non-Sentry interceptor,
105
-
// it is preserved as a delegate (covered above). The reflection-failure
106
-
// branch is logged at ERROR and returns the bean untouched; see
0 commit comments