@Test public void validate_connectionsMaxTotalIsNegative_ValidationException() { R abbyyRequestMock = mockAbbyyRequest(); when(abbyyRequestMock.getConnectionsMaxTotal()).thenReturn(-1); ValidationException ex = this.sut.validate(abbyyRequestMock); assertNotNull(ex); }
public ValidationException validate(@NotNull R request) { try { validateLocationId(request); validateApplicationId(request); validatePassword(request); validateProxyPort(request); validateDestinationFile(request); validateSourceFile(request); validateConnectTimeout(request); validateSocketTimeout(request); validateConnectionsMaxPerRoute(request); validateConnectionsMaxTotal(request); validateFurther(request); return null; } catch (ValidationException ex) { return ex; } }
AbbyyInputValidator { public ValidationException validate(@NotNull R request) { try { validateLocationId(request); validateApplicationId(request); validatePassword(request); validateProxyPort(request); validateDestinationFile(request); validateSourceFile(request); validateConnectTimeout(request); validateSocketTimeout(request); validateConnectionsMaxPerRoute(request); validateConnectionsMaxTotal(request); validateFurther(request); return null; } catch (ValidationException ex) { return ex; } } }
AbbyyInputValidator { public ValidationException validate(@NotNull R request) { try { validateLocationId(request); validateApplicationId(request); validatePassword(request); validateProxyPort(request); validateDestinationFile(request); validateSourceFile(request); validateConnectTimeout(request); validateSocketTimeout(request); validateConnectionsMaxPerRoute(request); validateConnectionsMaxTotal(request); validateFurther(request); return null; } catch (ValidationException ex) { return ex; } }  }
AbbyyInputValidator { public ValidationException validate(@NotNull R request) { try { validateLocationId(request); validateApplicationId(request); validatePassword(request); validateProxyPort(request); validateDestinationFile(request); validateSourceFile(request); validateConnectTimeout(request); validateSocketTimeout(request); validateConnectionsMaxPerRoute(request); validateConnectionsMaxTotal(request); validateFurther(request); return null; } catch (ValidationException ex) { return ex; } }  ValidationException validate(@NotNull R request); }
AbbyyInputValidator { public ValidationException validate(@NotNull R request) { try { validateLocationId(request); validateApplicationId(request); validatePassword(request); validateProxyPort(request); validateDestinationFile(request); validateSourceFile(request); validateConnectTimeout(request); validateSocketTimeout(request); validateConnectionsMaxPerRoute(request); validateConnectionsMaxTotal(request); validateFurther(request); return null; } catch (ValidationException ex) { return ex; } }  ValidationException validate(@NotNull R request);  }