Skip to content

Commit

Permalink
#1 Migrate to JUnit5
Browse files Browse the repository at this point in the history
  • Loading branch information
prmr committed May 13, 2020
1 parent e94671a commit 2a584ff
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .classpath
Expand Up @@ -2,7 +2,7 @@
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk-14.0.1">
<attributes>
<attribute name="module" value="true"/>
Expand Down
5 changes: 3 additions & 2 deletions test/ca/mcgill/cs/swevo/minesweeper/TestCell.java
Expand Up @@ -20,9 +20,10 @@
*******************************************************************************/
package ca.mcgill.cs.swevo.minesweeper;

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

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

public class TestCell
{
Expand Down
9 changes: 5 additions & 4 deletions test/ca/mcgill/cs/swevo/minesweeper/TestMinefield.java
Expand Up @@ -20,16 +20,17 @@
*******************************************************************************/
package ca.mcgill.cs.swevo.minesweeper;

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

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

public class TestMinefield
{
private Minefield aMinefield;

@Before
@BeforeEach
public void setUp()
{
aMinefield = new Minefield(5, 5, 5);
Expand Down
6 changes: 4 additions & 2 deletions test/ca/mcgill/cs/swevo/minesweeper/TestPosition.java
Expand Up @@ -20,9 +20,11 @@
*******************************************************************************/
package ca.mcgill.cs.swevo.minesweeper;

import static org.junit.Assert.*;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

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

public class TestPosition
{
Expand Down

0 comments on commit 2a584ff

Please sign in to comment.