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

Lines changed: 2 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy