Skip to content

Commit 8ba2eb0

Browse files
committed
Refactoring
Signed-off-by: Kemal Žigović <kvant800@gmail.com>
1 parent fac21f4 commit 8ba2eb0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/com/kvark900/api/configuration/SetupDataLoader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ public void onApplicationEvent(final ContextRefreshedEvent event) {
149149
//===============================================================================
150150
//endregion
151151

152+
//===============================================================================
152153
//endregion
153154

154155

src/main/java/com/kvark900/api/controller/BookController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ else if(allBooks.isEmpty()){
3535
else return new ResponseEntity<>(allBooks, HttpStatus.OK);
3636
}
3737

38-
@GetMapping (value = "/{id}", produces = MediaType.APPLICATION_JSON_UTF8_VALUE,
39-
consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
38+
@GetMapping ("/{id}")
4039
public ResponseEntity<Book> getBook(@PathVariable Long id){
4140
Book book = bookService.findById(id);
4241
if(book == null){

src/test/java/com/kvark900/TestControllers.java renamed to src/test/java/com/kvark900/TestAuthorController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
@RunWith(SpringRunner.class)
3434
@WebMvcTest(AuthorController.class)
35-
public class TestControllers {
35+
public class TestAuthorController {
3636

3737
@Autowired
3838
private MockMvc mockMvc;

0 commit comments

Comments
 (0)