@Test public void validate_resultUrlsMissing_ValidationException() { final AbbyyResponse response = mockAbbyyResponse(); when(response.getResultUrls()).thenReturn(Collections.<String>emptyList()); ValidationException ex = this.sut.validate(response); assertNotNull(ex); }
public ValidationException validate(@NotNull AbbyyResponse response) { try { validateTaskId(response); validateCredits(response); validateTaskStatus(response); validateResultUrls(response); validateEstimatedProcessingTime(response); return null; } catch (ValidationException ex) { return ex; } }
AbbyyResponseValidatorImpl implements AbbyyResponseValidator { public ValidationException validate(@NotNull AbbyyResponse response) { try { validateTaskId(response); validateCredits(response); validateTaskStatus(response); validateResultUrls(response); validateEstimatedProcessingTime(response); return null; } catch (ValidationException ex) { return ex; } } }
AbbyyResponseValidatorImpl implements AbbyyResponseValidator { public ValidationException validate(@NotNull AbbyyResponse response) { try { validateTaskId(response); validateCredits(response); validateTaskStatus(response); validateResultUrls(response); validateEstimatedProcessingTime(response); return null; } catch (ValidationException ex) { return ex; } }  }
AbbyyResponseValidatorImpl implements AbbyyResponseValidator { public ValidationException validate(@NotNull AbbyyResponse response) { try { validateTaskId(response); validateCredits(response); validateTaskStatus(response); validateResultUrls(response); validateEstimatedProcessingTime(response); return null; } catch (ValidationException ex) { return ex; } }  ValidationException validate(@NotNull AbbyyResponse response); }
AbbyyResponseValidatorImpl implements AbbyyResponseValidator { public ValidationException validate(@NotNull AbbyyResponse response) { try { validateTaskId(response); validateCredits(response); validateTaskStatus(response); validateResultUrls(response); validateEstimatedProcessingTime(response); return null; } catch (ValidationException ex) { return ex; } }  ValidationException validate(@NotNull AbbyyResponse response);  }