From 5845290f0268ca08522e547f3c02b9dd0f607a8d Mon Sep 17 00:00:00 2001 From: Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> Date: Fri, 4 Oct 2024 05:01:41 -0700 Subject: [PATCH] Excavator: Prefer AssertJ (#28) --- .../gradle/versions/intellij/VersionPropsCodeInsightTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle-consistent-versions-idea-plugin/src/test/java/com/palantir/gradle/versions/intellij/VersionPropsCodeInsightTest.java b/gradle-consistent-versions-idea-plugin/src/test/java/com/palantir/gradle/versions/intellij/VersionPropsCodeInsightTest.java index 20bb102..b725966 100644 --- a/gradle-consistent-versions-idea-plugin/src/test/java/com/palantir/gradle/versions/intellij/VersionPropsCodeInsightTest.java +++ b/gradle-consistent-versions-idea-plugin/src/test/java/com/palantir/gradle/versions/intellij/VersionPropsCodeInsightTest.java @@ -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);