@Test annotated methods must be public. Removed the annotation and made methods private

This commit is contained in:
Abhijay Kumar 2019-05-24 13:45:48 +05:30
parent 8841314c87
commit 7e33042c3a

View File

@ -9,14 +9,12 @@ import static org.junit.Assert.*;
public class FastPowerTest {
@Test
void testLong(long n, long k, long m) {
private void testLong(long n, long k, long m) {
long result = FastPower.calculate(n, k, m);
assertEquals(result, BigInteger.valueOf(n).modPow(BigInteger.valueOf(k), BigInteger.valueOf(m)).longValue());
}
@Test
void testBigInteger(BigInteger n, BigInteger k, BigInteger m) {
private void testBigInteger(BigInteger n, BigInteger k, BigInteger m) {
BigInteger result = FastPower.calculate(n, k, m);
assertEquals(result, n.modPow(k, m));
}