From 8223e6080ecb077b0a4dfacb5fe3f06b04f5f64a Mon Sep 17 00:00:00 2001 From: zhiyaoPCCW Date: Tue, 3 Dec 2024 15:19:52 +0800 Subject: [PATCH] fix unit test cases --- .../gateway/runner/MappingMatrixCheckerActionRunnerTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kraken-java-sdk/kraken-java-sdk-gateway/src/test/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunnerTest.java b/kraken-java-sdk/kraken-java-sdk-gateway/src/test/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunnerTest.java index 265fca09..2ac73005 100644 --- a/kraken-java-sdk/kraken-java-sdk-gateway/src/test/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunnerTest.java +++ b/kraken-java-sdk/kraken-java-sdk-gateway/src/test/java/com/consoleconnect/kraken/operator/gateway/runner/MappingMatrixCheckerActionRunnerTest.java @@ -34,7 +34,8 @@ void givenTargetKeyNotFound_whenOnCheck_thenReturnException() { Assertions.assertThrowsExactly( KrakenException.class, () -> mappingMatrixCheckerActionRunner.onCheck(inputs)); MatcherAssert.assertThat( - krakenException.getMessage(), Matchers.containsString("possibly product not supported")); + krakenException.getMessage(), + Matchers.containsString("api use case is not supported :not deployed")); } @Test @@ -49,7 +50,7 @@ void givenTargetKeyNotDeployed_whenOnCheck_thenReturnException() { MatcherAssert.assertThat( krakenException.getMessage(), Matchers.containsString(""" - lack in check rules for target key""")); + api use case is not supported :not deployed""")); } @Test