From 6d9e4485586fe451913152cc43f07e5d5a17d80d Mon Sep 17 00:00:00 2001 From: Excavator Bot <33266368+svc-excavator-bot@users.noreply.github.com> Date: Thu, 3 Oct 2024 04:32:40 -0700 Subject: [PATCH] Excavator: Prefer AssertJ (#26) --- .../gradle/versions/intellij/VersionPropsCodeInsightTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 794849c..20bb102 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,7 +103,8 @@ public void test_psi_tree_structure() throws Exception { PsiElement[] groupParts = PsiTreeUtil.getChildrenOfType(dependencyGroupElement, PsiElement.class); assertThat(groupParts).isNotNull(); - assertThat(groupParts.length >= 5).isTrue(); // Should contain at least com, ., palantir, ., baseline + assertThat(groupParts.length) + .isGreaterThanOrEqualTo(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);