Skip to content

EntitySmokeIT test fails when the first entity size is wrong #25

@lubomsky

Description

@lubomsky

I would suggest to rewrite test here if you want to properly check all entities.

import org.assertj.core.api.SoftAssertions;


// when //then
var softly = new SoftAssertions();
classMap.forEach((entityType, expectedCount) ->
                         softly.assertThat(em.createQuery("from " + entityType.getSimpleName())
                                             .getResultList())
                               .hasSize(expectedCount));
softly.assertAll();

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions