Skip to content

Commit 7e33042

Browse files
committed
@test annotated methods must be public. Removed the annotation and made methods private
1 parent 8841314 commit 7e33042

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/java/com/others/FastPowerTest.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@
99

1010
public class FastPowerTest {
1111

12-
@Test
13-
void testLong(long n, long k, long m) {
12+
private void testLong(long n, long k, long m) {
1413
long result = FastPower.calculate(n, k, m);
1514
assertEquals(result, BigInteger.valueOf(n).modPow(BigInteger.valueOf(k), BigInteger.valueOf(m)).longValue());
1615
}
1716

18-
@Test
19-
void testBigInteger(BigInteger n, BigInteger k, BigInteger m) {
17+
private void testBigInteger(BigInteger n, BigInteger k, BigInteger m) {
2018
BigInteger result = FastPower.calculate(n, k, m);
2119
assertEquals(result, n.modPow(k, m));
2220
}

0 commit comments

Comments
 (0)