0
Ich habe diesen TestJavax Validierung mit H2
@Test
public void mustPostAccountCreationExceptionWithMoreThanTwoDigitsAfterComma(){
thrown.expect(ConstraintViolationException.class);
account.setSaldo(new BigDecimal("12.000"));
accountRepository.save(account);
}
Und diese Validierung für das Feld saldo
:
@Digits(fraction = 2, integer = 9)
private BigDecimal saldo;
Aber mit H2 nicht funktioniert und Postgresql arbeitet
Ich glaube, dass ich nicht config-Bohnen auf mein Projekt haben, ist mein Projekt auf Github https://github.com/LuizdosReis/controleOrcamento –