Skip to content

Commit 560c66a

Browse files
committed
add more tests
1 parent c25ca3d commit 560c66a

File tree

8 files changed

+942
-71
lines changed

8 files changed

+942
-71
lines changed

codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
ignore:
22
- "**/testFixtures/**"
3+
- "**/test/**"

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

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,33 @@ class MediatorTests : MediatorUseCases() {
4141
TestQueryBaseHandler(),
4242
TestCommandWithResultBaseHandler(),
4343
TestCommandForInheritanceWithFallbackHandlerHandler(),
44-
TestRequestHandlerForCommandInherited2()
44+
TestRequestHandlerForCommandInherited2(),
45+
TestBrokenRequestHandler(mediator = { testMediator }),
46+
RequestWithNullableResultHandler(),
47+
RequestWithNullParameterHandler(),
48+
NestedGenericRequestHandler<String, Int>(),
49+
WildcardGenericRequestHandler<Int>(),
50+
WildcardGenericRequestHandler<Double>(),
51+
ConcurrentRequestHandler(),
52+
LongRunningRequestHandler(),
53+
SelfReferencingRequestHandler(mediator = { testMediator }),
54+
MultiInterfaceRequestHandler(),
55+
EmptyRequestHandler(),
56+
VoidResultRequestHandler(),
57+
CollectionRequestHandler(),
58+
RequestThatThrowsSpecificExceptionHandler(),
59+
RequestThatThrowsRuntimeExceptionHandler(),
60+
NotificationThatThrowsExceptionHandler1(),
61+
NotificationThatThrowsExceptionHandler2(),
62+
NotificationThatThrowsExceptionHandler3(),
63+
SlowNotificationHandler1(),
64+
SlowNotificationHandler2(),
65+
SlowNotificationHandler3(),
66+
ModifyingPipelineBehavior(),
67+
ConditionalPipelineBehavior(),
68+
TimingPipelineBehavior(),
69+
ComplexPipelineRequestHandler(),
70+
ComplexDataRequestHandler()
4571
)
4672
)
4773
}

0 commit comments

Comments
 (0)