I have a class with final attributes to report on error information. The constructor call is as shown in the snippet.
@Test
public void test_With_Message() throws ParseException {
final Exception e = new Exception("");
final HttpStatus status = HttpStatus.BAD_GATEWAY;
final String path = "abc/def/v1";
final String message = "Exception";
Info info = new Info(e, status, path, message);
How do I test Object creation with AssertJ unit tests?
I have tried assertThat(info).hasNoNullFieldsOrProperties();
assertThat(info).isNotNull();
JaCoco still reports missing branches on the constructor.