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: spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationReactiveSupport.java
Copy file name to clipboardExpand all lines: spring-context/src/test/java/org/springframework/scheduling/annotation/ScheduledAnnotationReactiveSupportTests.java
assertThat("FIXME").isEqualTo("@Scheduled 'mono()' in bean 'org.springframework.scheduling.annotation.ScheduledAnnotationReactiveSupportTests$ReactiveMethods'");
assertThat(p).hasToString("checkpoint(\"@Scheduled 'mono()' in bean 'org.springframework.scheduling.annotation.ScheduledAnnotationReactiveSupportTests$ReactiveMethods'\")");
Copy file name to clipboardExpand all lines: spring-context/src/test/kotlin/org/springframework/scheduling/annotation/KotlinScheduledAnnotationReactiveSupportTests.kt
val m =ReflectionUtils.findMethod(SuspendingFunctions::class.java, "suspending", Continuation::class.java)
178
-
val reactiveTask =ReactiveTask(m!!, target!!, Duration.ZERO, Duration.ZERO, false)
179
-
assertThat(reactiveTask).hasToString("@Scheduled 'suspending()' in bean 'org.springframework.scheduling.annotation.KotlinScheduledAnnotationReactiveSupportTests\$SuspendingFunctions'")
180
-
}
181
-
182
-
@Test
183
-
funcancelledEarlyPreventsSubscription() {
184
-
val m =ReflectionUtils.findMethod(SuspendingFunctions::class.java, "suspendingTracking", Continuation::class.java)
185
-
val reactiveTask =ReactiveTask(m!!, target!!, Duration.ZERO, Duration.ofSeconds(10), false)
186
-
reactiveTask.cancel()
187
-
reactiveTask.subscribe()
188
-
assertThat(target!!.subscription).hasValue(0)
189
-
}
190
-
191
-
@Test
192
-
funmultipleSubscriptionsTracked() {
193
-
val m =ReflectionUtils.findMethod(SuspendingFunctions::class.java, "suspendingTracking", Continuation::class.java)
194
-
val reactiveTask =ReactiveTask(m!!, target!!, Duration.ZERO, Duration.ofMillis(500), false)
0 commit comments