Skip to content

Commit

Permalink
Fix static imports
Browse files Browse the repository at this point in the history
  • Loading branch information
s1ck committed Nov 20, 2023
1 parent 79667c6 commit 86e118a
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 86e118a

Please sign in to comment.