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);