Skip to content

Commit

Permalink
Excavator: Prefer AssertJ (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot authored Oct 4, 2024
1 parent 6d9e448 commit 5845290
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ public void test_psi_tree_structure() throws Exception {

PsiElement[] groupParts = PsiTreeUtil.getChildrenOfType(dependencyGroupElement, PsiElement.class);
assertThat(groupParts).isNotNull();
assertThat(groupParts.length)
.isGreaterThanOrEqualTo(5); // Should contain at least com, ., palantir, ., baseline
assertThat(groupParts)
.hasSizeGreaterThanOrEqualTo(5); // Should contain at least com, ., palantir, ., baseline
assertThat(groupParts[0].getNode().getElementType()).isEqualTo(VersionPropsTypes.GROUP_PART);
assertThat(groupParts[0].getText()).isEqualTo("com");
assertThat(groupParts[1].getNode().getElementType()).isEqualTo(VersionPropsTypes.DOT);
Expand Down

0 comments on commit 5845290

Please sign in to comment.