Skip to content

Commit

Permalink
Remove deprecated IntStreams (#234)
Browse files Browse the repository at this point in the history
Close #233
  • Loading branch information
sleberknight authored May 29, 2021
1 parent 677561f commit ed52702
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 70 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.collect.Lists.newArrayList;
import static org.kiwiproject.base.KiwiPreconditions.checkArgumentNotNull;
import static org.kiwiproject.test.util.IntStreams.indicesOf;
import static org.kiwiproject.stream.IntStreams.indicesOf;

import org.assertj.core.api.SoftAssertions;

Expand Down Expand Up @@ -91,7 +91,6 @@ public <T, R> void assertStateChangeResult(List<T> inputValues,
checkArgumentNotNull(mutator);
checkArgumentNotNull(resultSupplier);

// TODO: When kiwi 0.23.0 is released, switch this to the kiwi version
indicesOf(inputValues).forEach(index -> {
T input = inputValues.get(index);
mutator.accept(input);
Expand Down
29 changes: 0 additions & 29 deletions src/main/java/org/kiwiproject/test/util/IntStreams.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.collect.Lists.newArrayList;
import static org.kiwiproject.base.KiwiPreconditions.checkArgumentNotNull;
import static org.kiwiproject.stream.IntStreams.indicesOf;
import static org.kiwiproject.test.junit.ParameterizedTests.inputs;
import static org.kiwiproject.test.util.IntStreams.indicesOf;

import org.assertj.core.api.SoftAssertions;

Expand Down Expand Up @@ -146,7 +146,6 @@ public <T, U> void assertPropertyViolationCounts(String propertyName,
checkArgumentNotNull(propertyName);
checkInputAndExpectedValues(inputValues, expectedViolations, "expectedViolations");

// TODO: When kiwi 0.23.0 is released, switch this to the kiwi version
indicesOf(inputValues).forEach(index -> {
T input = inputValues.get(index);
mutator.accept(input);
Expand Down
37 changes: 0 additions & 37 deletions src/test/java/org/kiwiproject/test/util/IntStreamsTest.java

This file was deleted.

0 comments on commit ed52702

Please sign in to comment.