Here is the private
method I am trying to test
private int privateMethod(int[] numbers) {
var sum = 0;
for (int number : numbers) {
sum += number;
}
return sum;
}
I am doing this in Java 11
And following is my test using Junit5
import org.junit.jupiter.api.Test;
import org.junit.platform.commons.function.Try;
…
Top comments (1)
What would be the purpose of such a test?