PAN-11 wrote unit tests for the updateDefinition method

This commit is contained in:
Dark-Alex-17 committed 2019-03-24 22:12:34 -06:00
1 parent 6d1db048c8
commit 5a44b5b793
2 files changed
+67 -4

No files matched your search

@@ -117,6 +117,11 @@ public class DefinitionService {
return Optional.empty();
}
if (definition.getId() == 0) {
LOG.error("Given invalid id 0, returning {}");
return Optional.empty();
}
LOG.info("Sending request to update definition {}", definition);
final Instant start = Instant.now();