[BAEL-7609] - Fixed spring-boot integration tests
This commit is contained in:
@@ -3,6 +3,7 @@ package com.baeldung.displayallbeans.controller;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
@@ -14,9 +15,9 @@ public class FooController {
|
||||
private FooService fooService;
|
||||
|
||||
@GetMapping(value = "/displayallbeans")
|
||||
public String getHeaderAndBody(Map<String, Object> model) {
|
||||
public ResponseEntity<String> getHeaderAndBody(Map<String, Object> model) {
|
||||
model.put("header", fooService.getHeader());
|
||||
model.put("message", fooService.getBody());
|
||||
return "displayallbeans";
|
||||
return ResponseEntity.ok("displayallbeans");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user