PAN-11 wrote unit tests for the updateDefinition method

This commit is contained in:
2019-03-24 22:12:34 -06:00
parent 6d1db048c8
commit 5a44b5b793
2 changed files with 67 additions and 4 deletions
@@ -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();