Hello!
I’m doing some tests with diffblue tool, but appears this message.
Unable to generate test inputs not throwing a trivial exception.
What do i need to fix, to have a unit test generation of this? Thank you in advance!
Here is a sample of code.
@Override
@Transactional
public void validarTieneReglaNegocio(PerfilAccesoDetalle pad) {
Acceso acceso = accesoService
.consultarPorId(pad.getAcceso().getIdAcceso());
if (acceso.getReglaNegocio() != null) {
throw new RelacionInvalidaException(ACCESO_TIENE_REGLA_NEGOCIO);
}
}