Добавил API счетов с ответами 201, 404 и 400 и тестами контроллера
This commit is contained in:
1 parent
cd404fae0b
commit
6dec1fe840
13 files changed
+196
-6
No files matched your search
@@ -49,11 +49,6 @@ public class OperationService {
|
||||
}
|
||||
|
||||
private Operation requiredOperation(Long operationId) {
|
||||
|
||||
if (operationId == null) {
|
||||
throw new IllegalArgumentException("Не указан ID операции");
|
||||
}
|
||||
|
||||
Operation operation = journal.getOperationById(operationId);
|
||||
|
||||
if (operation == null) {
|
||||
|
||||
Reference in new issue
Block a user