From 5a6c4f4d601fd2b701a25439e8e8b757568aa59e Mon Sep 17 00:00:00 2001 From: Tsvi Zandany Date: Fri, 23 Feb 2024 14:59:34 -0600 Subject: [PATCH] Update deployment and test case --- deployments/spring-app-deployment-v1.yaml | 2 +- src/test/java/net/codejava/JUnit5ExampleTest11.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deployments/spring-app-deployment-v1.yaml b/deployments/spring-app-deployment-v1.yaml index e77624e..b8c1090 100644 --- a/deployments/spring-app-deployment-v1.yaml +++ b/deployments/spring-app-deployment-v1.yaml @@ -15,7 +15,7 @@ spec: spec: containers: - name: spring-app-container - image: ghcr.io/octodemo/java-springboot-demo:195 + image: ghcr.io/octodemo/java-springboot-demo:197 ports: - containerPort: 8086 env: diff --git a/src/test/java/net/codejava/JUnit5ExampleTest11.java b/src/test/java/net/codejava/JUnit5ExampleTest11.java index 4e665e4..c11b38d 100644 --- a/src/test/java/net/codejava/JUnit5ExampleTest11.java +++ b/src/test/java/net/codejava/JUnit5ExampleTest11.java @@ -58,12 +58,12 @@ void testEnableSearchFeature() { // print a comment about the value of enableSearchFeature System.out.println("\n\n"); System.out.println("--------------------------------------------------------------------------------"); - System.out.println("Expected value of enableSearchFeature: true"); + System.out.println("Expected value of enableSearchFeature: false"); System.out.println("Actual value of enableSearchFeature: " + appController.getEnableSearchFeature()); System.out.println("--------------------------------------------------------------------------------"); // assert that the value of enableSearchFeature is true - assertEquals(true, appController.getEnableSearchFeature()); + assertEquals(false, appController.getEnableSearchFeature()); System.out.println("\n\nTest11-2 Successful!\n\n"); }