From 86e118ab505922bfdc54fab21a1b42f749839007 Mon Sep 17 00:00:00 2001 From: Martin Junghanns Date: Mon, 20 Nov 2023 14:13:47 +0100 Subject: [PATCH] Fix static imports --- ...fferedCompositeRelationshipConsumerTest.java | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/native-projection/src/test/java/org/neo4j/gds/projection/BufferedCompositeRelationshipConsumerTest.java b/native-projection/src/test/java/org/neo4j/gds/projection/BufferedCompositeRelationshipConsumerTest.java index a268493289..d479064e3a 100644 --- a/native-projection/src/test/java/org/neo4j/gds/projection/BufferedCompositeRelationshipConsumerTest.java +++ b/native-projection/src/test/java/org/neo4j/gds/projection/BufferedCompositeRelationshipConsumerTest.java @@ -19,12 +19,13 @@ */ package org.neo4j.gds.projection; -import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Test; import org.neo4j.gds.core.huge.DirectIdMap; import java.util.stream.IntStream; +import static org.assertj.core.api.Assertions.assertThat; + class BufferedCompositeRelationshipConsumerTest { @Test @@ -45,13 +46,13 @@ void shouldNotThrowWhenFull() { .targetNodeReference(1) .build(); - Assertions.assertThat(compositeBatchBuffer.offer(type0Rel)).isTrue(); - Assertions.assertThat(compositeBatchBuffer.offer(type1Rel)).isTrue(); - Assertions.assertThat(compositeBatchBuffer.offer(type0Rel)).isFalse(); - Assertions.assertThat(compositeBatchBuffer.offer(type1Rel)).isFalse(); - Assertions.assertThat(compositeBatchBuffer.offer(type0Rel)).isFalse(); - Assertions.assertThat(compositeBatchBuffer.offer(type1Rel)).isFalse(); - Assertions.assertThat(compositeBatchBuffer.isFull()).isTrue(); + assertThat(compositeBatchBuffer.offer(type0Rel)).isTrue(); + assertThat(compositeBatchBuffer.offer(type1Rel)).isTrue(); + assertThat(compositeBatchBuffer.offer(type0Rel)).isFalse(); + assertThat(compositeBatchBuffer.offer(type1Rel)).isFalse(); + assertThat(compositeBatchBuffer.offer(type0Rel)).isFalse(); + assertThat(compositeBatchBuffer.offer(type1Rel)).isFalse(); + assertThat(compositeBatchBuffer.isFull()).isTrue(); } private static BufferedCompositeRelationshipConsumer createCompositeBuffer(int typeCount, int capacity) {