1
1
package io .ipfs .multihash ;
2
2
3
3
import io .ipfs .multibase .*;
4
- import org .junit .Test ;
4
+ import org .junit .jupiter . api . Test ;
5
5
6
6
import java .io .*;
7
7
import java .security .MessageDigest ;
8
8
import java .util .Arrays ;
9
9
import java .util .List ;
10
10
11
- import static org .junit .Assert .*;
11
+ import static org .junit .jupiter . api . Assertions .*;
12
12
13
- public class MultihashTest {
13
+ class MultihashTest {
14
14
15
15
@ Test
16
- public void base58Test () {
16
+ void base58Test () {
17
17
List <String > examples = Arrays .asList ("QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB" ,
18
18
"QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy" );
19
19
for (String example : examples ) {
@@ -24,7 +24,7 @@ public void base58Test() {
24
24
}
25
25
26
26
@ Test
27
- public void decodeTest () throws IOException {
27
+ void decodeTest () throws IOException {
28
28
List <String > base58 = Arrays .asList (
29
29
"QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB" ,
30
30
"QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy"
@@ -40,7 +40,7 @@ public void decodeTest() throws IOException {
40
40
}
41
41
42
42
@ Test
43
- public void multihashTest () {
43
+ void multihashTest () {
44
44
Object [][] examples = new Object [][]{
45
45
{Multihash .Type .id , "ID" , "13hC12xCn" , "hello" },
46
46
{Multihash .Type .id , "ID" , "11" , "" },
0 commit comments