Skip to content

Commit

Permalink
fix unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiyaoPCCW committed Dec 3, 2024
1 parent 61cea0f commit 8223e60
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8223e60

Please sign in to comment.