refactor: migrate validations from services to controllers #183
Codeac Code Quality
This PR contains 31 errors and 34 warnings.
Annotations
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenPut_whenRequestBodyIsInvalidBook_thenResponseStatusIsBadRequest' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenDelete_whenPathVariableIsValidAndExistingISBN_thenResponseStatusIsNoContent' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenDelete_whenPathVariableIsValidButNonExistentISBN_thenResponseStatusIsNotFound' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenDelete_whenPathVariableIsInvalidISBN_thenResponseStatusIsBadRequest' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenFindByIsbn_whenISBNAlreadyExists_thenShouldReturnExistingBook' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenFindByIsbn_whenISBNDoesNotExist_thenShouldReturnEmptyOptional' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenCreate_whenRepositoryExistsByIdReturnsTrue_thenRepositoryNeverSaveBookAndResultIsFalse' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
CodeDuplication
This block of 8 lines is too similar to src/test/java/ar/com/nanotaboada/java/samples/spring/boot/test/services/BooksServiceTests.java:75
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenCreate_whenRepositoryExistsByIdReturnsFalse_thenRepositorySaveBookAndResultIsTrue' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
CodeDuplication
This block of 8 lines is too similar to src/test/java/ar/com/nanotaboada/java/samples/spring/boot/test/services/BooksServiceTests.java:164
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenRetrieveByIsbn_whenRepositoryFindByIdReturnsBook_thenResultIsEqualToBook' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
CodeDuplication
This block of 12 lines is too similar to src/test/java/ar/com/nanotaboada/java/samples/spring/boot/test/services/BooksServiceTests.java:56
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenRetrieveByIsbn_whenRepositoryFindByIdReturnsEmpty_thenResultIsNull' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
CodeDuplication
This block of 12 lines is too similar to src/test/java/ar/com/nanotaboada/java/samples/spring/boot/test/services/BooksServiceTests.java:179
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenRetrieveAll_whenRepositoryFindAllReturnsBooks_thenResultIsEqualToBooks' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
CodeDuplication
This block of 12 lines is too similar to src/test/java/ar/com/nanotaboada/java/samples/spring/boot/test/services/BooksServiceTests.java:1
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenUpdate_whenRepositoryExistsByIdReturnsTrue_thenRepositorySaveBookAndResultIsTrue' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
CodeDuplication
This block of 12 lines is too similar to src/test/java/ar/com/nanotaboada/java/samples/spring/boot/test/controllers/BooksControllerTests.java:1
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenUpdate_whenRepositoryExistsByIdReturnsFalse_thenRepositoryNeverSaveBookAndResultIsFalse' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
CodeDuplication
This block of 7 lines is too similar to src/test/java/ar/com/nanotaboada/java/samples/spring/boot/test/services/BooksServiceTests.java:22
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenDelete_whenRepositoryExistsByIdReturnsFalse_thenRepositoryNeverDeleteBookAndResultIsFalse' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
CodeDuplication
This block of 7 lines is too similar to src/test/java/ar/com/nanotaboada/java/samples/spring/boot/test/controllers/BooksControllerTests.java:29
codeac-io / Codeac Code Quality
MethodNamingConventions
The JUnit 5 test method name 'givenDelete_whenRepositoryExistsByIdReturnsTrue_thenRepositoryDeleteBookAndResultIsTrue' doesn't match '[a-z][a-zA-Z0-9]*'
codeac-io / Codeac Code Quality
CodeDuplication
This block of 12 lines is too similar to src/test/java/ar/com/nanotaboada/java/samples/spring/boot/test/controllers/BooksControllerTests.java:221
codeac-io / Codeac Code Quality
CodeDuplication
This block of 12 lines is too similar to src/test/java/ar/com/nanotaboada/java/samples/spring/boot/test/controllers/BooksControllerTests.java:244