Skip to content

Commit 6ea6e4c

Browse files
committed
make sure koin works with generic parameterized tests
1 parent aafe94e commit 6ea6e4c

File tree

1 file changed

+9
-9
lines changed
  • projects/kediatr-koin-starter/src/test/kotlin/com/trendyol/kediatr/koin

1 file changed

+9
-9
lines changed

projects/kediatr-koin-starter/src/test/kotlin/com/trendyol/kediatr/koin/MediatorTests.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ class MediatorTests :
3838
single { TestInheritedRequestHandlerForSpecificCommand() }
3939
single { TestRequestHandlerWithoutInjection() }
4040
single { TestRequestHandlerForTypeLimitedInheritance() }
41-
single { ParameterizedRequestHandler<String>() }
42-
single { ParameterizedRequestHandlerForInheritance<String>() }
43-
single { ParameterizedCommandWithResultHandler<Long, String>() }
44-
single { ParameterizedCommandWithResultHandlerOfInheritedHandler<String>() }
41+
single { ParameterizedRequestHandler<Any>() }
42+
single { ParameterizedRequestHandlerForInheritance<Any>() }
43+
single { ParameterizedCommandWithResultHandler<Any, Any>() }
44+
single { ParameterizedCommandWithResultHandlerOfInheritedHandler<Any>() }
4545
single { APingHandler() }
4646
single { AnotherPingHandler() }
4747
single { Handler1ForNotificationOfMultipleHandlers() }
4848
single { Handler2ForNotificationOfMultipleHandlers() }
4949
single { InheritedNotificationHandler() }
50-
single { ParameterizedNotificationHandler<String>() }
51-
single { ParameterizedNotificationHandlerForInheritance<String>() }
50+
single { ParameterizedNotificationHandler<Any>() }
51+
single { ParameterizedNotificationHandlerForInheritance<Any>() }
5252
single { TestPipelineRequestHandlerWithoutInjection() }
5353
single { TestPipelineRequestHandlerThatFails() }
54-
single { ParameterizedQueryHandler<Long, String>() }
54+
single { ParameterizedQueryHandler<Any, Any>() }
5555
single { RequestHandlerThatPassesThroughOrderedPipelineBehaviours() }
5656
single { QueryHandlerThatPassesThroughOrderedPipelineBehaviours() }
5757
single { NotificationHandlerThatPassesThroughOrderedPipelineBehaviours() }
@@ -64,8 +64,8 @@ class MediatorTests :
6464
// New Edge Case Handlers (that actually exist)
6565
single { RequestWithNullableResultHandler() }
6666
single { RequestWithNullParameterHandler() }
67-
single { NestedGenericRequestHandler<String, Int>() }
68-
single { WildcardGenericRequestHandler<Double>() }
67+
single { NestedGenericRequestHandler<Any, Any>() }
68+
single { WildcardGenericRequestHandler<Any>() }
6969
single { ConcurrentRequestHandler() }
7070
single { LongRunningRequestHandler() }
7171
single { MultiInterfaceRequestHandler() }

0 commit comments

Comments
 (0)