[JAVA-28929] - Upgrade to mustache to Spring boot 3 (#15551)
This commit is contained in:
@@ -6,7 +6,6 @@ import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -71,7 +71,6 @@ public class TodoMustacheServiceUnitTest {
|
||||
|
||||
Map<String, Object> context = new HashMap<>();
|
||||
assertThat(executeTemplate(m, context)).isEmpty();
|
||||
;
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ public class SpringMustacheApplicationIntegrationTest {
|
||||
|
||||
ResponseEntity<String> entity = this.restTemplate.getForEntity("/article", String.class);
|
||||
|
||||
Assert.assertTrue(entity.getStatusCode().equals(HttpStatus.OK));
|
||||
Assert.assertEquals(entity.getStatusCode(), HttpStatus.OK);
|
||||
Assert.assertTrue(entity.getBody().contains("Article Title 0"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user