Skip to content

Commit

Permalink
Update to JUnit5 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mk868 authored Aug 23, 2024
1 parent b78a6e3 commit af22e3a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<version.junit>4.13.2</version.junit>
<version.hamcrest>2.2</version.hamcrest>
<version.junit>5.11.0</version.junit>
<version.hamcrest>3.0</version.hamcrest>
<version.multibase>v1.1.1</version.multibase>
</properties>

Expand All @@ -51,8 +51,8 @@
<version>${version.multibase}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>${version.junit}</version>
<scope>test</scope>
</dependency>
Expand All @@ -78,7 +78,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<version>3.3.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
12 changes: 6 additions & 6 deletions src/test/java/io/ipfs/multihash/MultihashTest.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package io.ipfs.multihash;

import io.ipfs.multibase.*;
import org.junit.Test;
import org.junit.jupiter.api.Test;

import java.io.*;
import java.security.MessageDigest;
import java.util.Arrays;
import java.util.List;

import static org.junit.Assert.*;
import static org.junit.jupiter.api.Assertions.*;

public class MultihashTest {
class MultihashTest {

@Test
public void base58Test() {
void base58Test() {
List<String> examples = Arrays.asList("QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB",
"QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy");
for (String example: examples) {
Expand All @@ -24,7 +24,7 @@ public void base58Test() {
}

@Test
public void decodeTest() throws IOException {
void decodeTest() throws IOException {
List<String> base58 = Arrays.asList(
"QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB",
"QmatmE9msSfkKxoffpHwNLNKgwZG8eT9Bud6YoPab52vpy"
Expand All @@ -40,7 +40,7 @@ public void decodeTest() throws IOException {
}

@Test
public void multihashTest() {
void multihashTest() {
Object[][] examples = new Object[][]{
{Multihash.Type.id, "ID", "13hC12xCn", "hello"},
{Multihash.Type.id, "ID", "11", ""},
Expand Down

0 comments on commit af22e3a

Please sign in to comment.