@@ -28,11 +28,11 @@ import kotlin.test.Test
28
28
import kotlin.test.fail
29
29
30
30
/* *
31
- * Tests [CombiningCommandCallback ] to verify that it correctly invokes given callbacks.
31
+ * Tests [ResultDiscriminatorCommandCallback ] to verify that it correctly invokes given callbacks.
32
32
*
33
33
* @author Stefan Andjelkovic
34
34
*/
35
- class CombiningCommandCallbackTest {
35
+ class ResultDiscriminatorCommandCallbackTest {
36
36
private val command = ExampleCommand (" 1" )
37
37
private val commandMessage: CommandMessage <ExampleCommand > = GenericCommandMessage .asCommandMessage(command)
38
38
private val responsePayloadUUID = UUID .randomUUID().toString()
@@ -45,7 +45,7 @@ class CombiningCommandCallbackTest {
45
45
val onSuccessMock = mockk< (commandMessage: CommandMessage <out ExampleCommand >, result: String , metaData: MetaData ) -> Unit > ()
46
46
every { onSuccessMock.invoke(commandMessage, responsePayloadUUID, any()) } returns Unit
47
47
48
- val subject = CombiningCommandCallback <ExampleCommand , String >(
48
+ val subject = ResultDiscriminatorCommandCallback <ExampleCommand , String >(
49
49
onError = { _, _, _ -> fail(" onError should not be called" ) },
50
50
onSuccess = onSuccessMock
51
51
)
@@ -60,7 +60,7 @@ class CombiningCommandCallbackTest {
60
60
val onSuccessMock = mockk< (commandMessage: CommandMessage <out ExampleCommand >, result: String , metaData: MetaData ) -> Unit > ()
61
61
every { onSuccessMock.invoke(commandMessage, responsePayloadUUID, any()) } returns Unit
62
62
63
- val subject = CombiningCommandCallback (
63
+ val subject = ResultDiscriminatorCommandCallback (
64
64
onError = { _, _, _ -> fail(" onError should not be called" ) },
65
65
onSuccess = onSuccessMock
66
66
)
@@ -75,7 +75,7 @@ class CombiningCommandCallbackTest {
75
75
val onError = mockk< (commandMessage: CommandMessage <out ExampleCommand >, exception: Throwable , metaData: MetaData ) -> Unit > ()
76
76
every { onError.invoke(commandMessage, exceptionalCommandResultMessage.exceptionResult(), any()) } returns Unit
77
77
78
- val subject = CombiningCommandCallback <ExampleCommand , String >(
78
+ val subject = ResultDiscriminatorCommandCallback <ExampleCommand , String >(
79
79
onError = onError,
80
80
onSuccess = { _, _, _ -> fail(" onSuccess should not be called" ) }
81
81
)
@@ -91,7 +91,7 @@ class CombiningCommandCallbackTest {
91
91
val onError = mockk< (commandMessage: CommandMessage <out ExampleCommand >, exception: Throwable , metaData: MetaData ) -> Unit > ()
92
92
every { onError.invoke(commandMessage, exceptionalCommandResultMessage.exceptionResult(), any()) } returns Unit
93
93
94
- val subject = CombiningCommandCallback <ExampleCommand , String >(
94
+ val subject = ResultDiscriminatorCommandCallback <ExampleCommand , String >(
95
95
onError = onError,
96
96
onSuccess = { _, _, _ -> fail(" onSuccess should not be called" ) }
97
97
)
0 commit comments