From a4588b2d692146622d649f103a04be5cbe28569b Mon Sep 17 00:00:00 2001 From: Rasmus Praestholm Date: Tue, 21 May 2019 10:54:34 -0400 Subject: [PATCH 1/3] RJX-1: Improve text before eventually doing better widget stuff. Totally won't break any tests. --- src/main/java/hello/GreetingController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/hello/GreetingController.java b/src/main/java/hello/GreetingController.java index c74cec2..9a1c7bf 100644 --- a/src/main/java/hello/GreetingController.java +++ b/src/main/java/hello/GreetingController.java @@ -8,7 +8,7 @@ @RestController public class GreetingController { - private static final String template = "Hello there, %s!"; + private static final String template = "Hello again there, %s!"; private final AtomicLong counter = new AtomicLong(); @RequestMapping("/greeting") From 6bd5e07542c2d568a96192991e6026c19f9f72ff Mon Sep 17 00:00:00 2001 From: Rasmus Praestholm Date: Tue, 21 May 2019 11:09:34 -0400 Subject: [PATCH 2/3] Whoops, broke a test. Fixing! --- src/test/java/hello/GreetingControllerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/hello/GreetingControllerTests.java b/src/test/java/hello/GreetingControllerTests.java index 86e0f0a..9c55922 100644 --- a/src/test/java/hello/GreetingControllerTests.java +++ b/src/test/java/hello/GreetingControllerTests.java @@ -40,7 +40,7 @@ public class GreetingControllerTests { public void noParamGreetingShouldReturnDefaultMessage() throws Exception { this.mockMvc.perform(get("/greeting")).andDo(print()).andExpect(status().isOk()) - .andExpect(jsonPath("$.content").value("Hello there, World!")); + .andExpect(jsonPath("$.content").value("Hello again there, World!")); } @Test From a651ed9913a4ad1e70500cdedf8df7416d399460 Mon Sep 17 00:00:00 2001 From: Rasmus Praestholm Date: Tue, 21 May 2019 11:13:05 -0400 Subject: [PATCH 3/3] Fix another test --- src/test/java/hello/GreetingControllerTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/hello/GreetingControllerTests.java b/src/test/java/hello/GreetingControllerTests.java index 9c55922..6ca88d0 100644 --- a/src/test/java/hello/GreetingControllerTests.java +++ b/src/test/java/hello/GreetingControllerTests.java @@ -48,7 +48,7 @@ public void paramGreetingShouldReturnTailoredMessage() throws Exception { this.mockMvc.perform(get("/greeting").param("name", "Spring Community")) .andDo(print()).andExpect(status().isOk()) - .andExpect(jsonPath("$.content").value("Hello there, Spring Community!")); + .andExpect(jsonPath("$.content").value("Hello again there, Spring Community!")); } }