@@ -28,11 +28,11 @@ import kotlin.test.Test
2828import kotlin.test.fail
2929
3030/* *
31- * Tests [CombiningCommandCallback ] to verify that it correctly invokes given callbacks.
31+ * Tests [ResultDiscriminatorCommandCallback ] to verify that it correctly invokes given callbacks.
3232 *
3333 * @author Stefan Andjelkovic
3434 */
35- class CombiningCommandCallbackTest {
35+ class ResultDiscriminatorCommandCallbackTest {
3636 private val command = ExampleCommand (" 1" )
3737 private val commandMessage: CommandMessage <ExampleCommand > = GenericCommandMessage .asCommandMessage(command)
3838 private val responsePayloadUUID = UUID .randomUUID().toString()
@@ -45,7 +45,7 @@ class CombiningCommandCallbackTest {
4545 val onSuccessMock = mockk< (commandMessage: CommandMessage <out ExampleCommand >, result: String , metaData: MetaData ) -> Unit > ()
4646 every { onSuccessMock.invoke(commandMessage, responsePayloadUUID, any()) } returns Unit
4747
48- val subject = CombiningCommandCallback <ExampleCommand , String >(
48+ val subject = ResultDiscriminatorCommandCallback <ExampleCommand , String >(
4949 onError = { _, _, _ -> fail(" onError should not be called" ) },
5050 onSuccess = onSuccessMock
5151 )
@@ -60,7 +60,7 @@ class CombiningCommandCallbackTest {
6060 val onSuccessMock = mockk< (commandMessage: CommandMessage <out ExampleCommand >, result: String , metaData: MetaData ) -> Unit > ()
6161 every { onSuccessMock.invoke(commandMessage, responsePayloadUUID, any()) } returns Unit
6262
63- val subject = CombiningCommandCallback (
63+ val subject = ResultDiscriminatorCommandCallback (
6464 onError = { _, _, _ -> fail(" onError should not be called" ) },
6565 onSuccess = onSuccessMock
6666 )
@@ -75,7 +75,7 @@ class CombiningCommandCallbackTest {
7575 val onError = mockk< (commandMessage: CommandMessage <out ExampleCommand >, exception: Throwable , metaData: MetaData ) -> Unit > ()
7676 every { onError.invoke(commandMessage, exceptionalCommandResultMessage.exceptionResult(), any()) } returns Unit
7777
78- val subject = CombiningCommandCallback <ExampleCommand , String >(
78+ val subject = ResultDiscriminatorCommandCallback <ExampleCommand , String >(
7979 onError = onError,
8080 onSuccess = { _, _, _ -> fail(" onSuccess should not be called" ) }
8181 )
@@ -91,7 +91,7 @@ class CombiningCommandCallbackTest {
9191 val onError = mockk< (commandMessage: CommandMessage <out ExampleCommand >, exception: Throwable , metaData: MetaData ) -> Unit > ()
9292 every { onError.invoke(commandMessage, exceptionalCommandResultMessage.exceptionResult(), any()) } returns Unit
9393
94- val subject = CombiningCommandCallback <ExampleCommand , String >(
94+ val subject = ResultDiscriminatorCommandCallback <ExampleCommand , String >(
9595 onError = onError,
9696 onSuccess = { _, _, _ -> fail(" onSuccess should not be called" ) }
9797 )
0 commit comments