Skip to content

Commit

Permalink
fix for a test
Browse files Browse the repository at this point in the history
  • Loading branch information
agrgr committed Nov 9, 2023
1 parent 2127cb5 commit 66003eb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import java.util.stream.Collectors;

import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.data.aerospike.query.QueryEngineTestDataPopulator.AGES;
import static org.springframework.data.aerospike.query.QueryEngineTestDataPopulator.BLUE;
import static org.springframework.data.aerospike.query.QueryEngineTestDataPopulator.GEO_BIN_NAME;
import static org.springframework.data.aerospike.query.QueryEngineTestDataPopulator.GREEN;
Expand Down Expand Up @@ -233,7 +234,7 @@ void selectWithoutQuery() {
.collect(Collectors.groupingBy(k -> k, countingInt()));
assertThat(ageCount.keySet())
.isNotEmpty()
.allSatisfy(age -> assertThat(age).isBetween(28, 29));
.allSatisfy(age -> assertThat(age).isIn((Object[]) AGES));
assertThat(ageCount.get(28)).isEqualTo(queryEngineTestDataPopulator.ageCount.get(28));
assertThat(ageCount.get(29)).isEqualTo(queryEngineTestDataPopulator.ageCount.get(29));
});
Expand Down

0 comments on commit 66003eb

Please sign in to comment.