Skip to content

Commit

Permalink
migrate 74 to junit5
Browse files Browse the repository at this point in the history
  • Loading branch information
fishercoder1534 committed Mar 14, 2024
1 parent 0bfc3fa commit cc0e179
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/test/java/com/fishercoder/_74Test.java
@@ -1,29 +1,29 @@
package com.fishercoder;

import com.fishercoder.solutions._74;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

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

public class _74Test {
private static _74.Solution1 solution1;
private static int target;
private static int[][] matrix;
private static _74.Solution1 solution1;
private static int target;
private static int[][] matrix;

@BeforeClass
public static void setup() {
solution1 = new _74.Solution1();
}
@BeforeEach
public void setup() {
solution1 = new _74.Solution1();
}

@Test
public void test1() {
target = 3;
matrix = new int[][] {
{1, 3, 5, 7},
{10, 11, 16, 20},
{23, 30, 34, 50},
};
assertEquals(true, solution1.searchMatrix(matrix, target));
}
@Test
public void test1() {
target = 3;
matrix = new int[][]{
{1, 3, 5, 7},
{10, 11, 16, 20},
{23, 30, 34, 50},
};
assertEquals(true, solution1.searchMatrix(matrix, target));
}
}

0 comments on commit cc0e179

Please sign in to comment.