Skip to content

Commit

Permalink
Upgrade to junit 5
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Oct 25, 2020
1 parent 146b5f9 commit 3ac28bb
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.7.0</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 2 additions & 4 deletions src/test/java/org/fusesource/jansi/AnsiStringTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@
*/
package org.fusesource.jansi;

import org.junit.Test;
import org.junit.jupiter.api.Test;

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

/**
* Tests for {@link AnsiString}.
*
* @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
*/
public class AnsiStringTest {
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/org/fusesource/jansi/AnsiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
package org.fusesource.jansi;

import org.fusesource.jansi.Ansi.Color;
import org.junit.Test;
import org.junit.jupiter.api.Test;

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

/**
* Tests for the {@link Ansi} class.
Expand Down
8 changes: 5 additions & 3 deletions src/test/java/org/fusesource/jansi/EncodingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/package org.fusesource.jansi;
*/
package org.fusesource.jansi;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
import java.util.concurrent.atomic.AtomicReference;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;

import static org.junit.Assert.assertEquals;

public class EncodingTest {

Expand Down
6 changes: 3 additions & 3 deletions src/test/java/org/fusesource/jansi/WindowsSupportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
*/
package org.fusesource.jansi;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assume.assumeTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assumptions.assumeTrue;

public class WindowsSupportTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.fusesource.jansi.internal;

import org.junit.Test;
import org.junit.jupiter.api.Test;

public class JansiLoaderTest {

Expand Down

0 comments on commit 3ac28bb

Please sign in to comment.