Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7e33042

Browse files
committed
@test annotated methods must be public. Removed the annotation and made methods private
1 parent8841314 commit7e33042

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
publicclassFastPowerTest {
1111

12-
@Test
13-
voidtestLong(longn,longk,longm) {
12+
privatevoidtestLong(longn,longk,longm) {
1413
longresult =FastPower.calculate(n,k,m);
1514
assertEquals(result,BigInteger.valueOf(n).modPow(BigInteger.valueOf(k),BigInteger.valueOf(m)).longValue());
1615
}
1716

18-
@Test
19-
voidtestBigInteger(BigIntegern,BigIntegerk,BigIntegerm) {
17+
privatevoidtestBigInteger(BigIntegern,BigIntegerk,BigIntegerm) {
2018
BigIntegerresult =FastPower.calculate(n,k,m);
2119
assertEquals(result,n.modPow(k,m));
2220
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp