|
14 | 14 | package com.google.ortools.linearsolver; |
15 | 15 |
|
16 | 16 | import static com.google.common.truth.Truth.assertThat; |
17 | | -import static org.junit.Assert.assertEquals; |
18 | | -import static org.junit.Assert.assertFalse; |
19 | | -import static org.junit.Assert.assertNotNull; |
20 | | -import static org.junit.Assert.assertTrue; |
| 17 | +import static org.junit.jupiter.api.Assertions.assertEquals; |
| 18 | +import static org.junit.jupiter.api.Assertions.assertFalse; |
| 19 | +import static org.junit.jupiter.api.Assertions.assertNotNull; |
| 20 | +import static org.junit.jupiter.api.Assertions.assertTrue; |
21 | 21 |
|
22 | 22 | import com.google.ortools.Loader; |
23 | 23 | import com.google.ortools.linearsolver.MPConstraintProto; |
|
27 | 27 | import com.google.ortools.linearsolver.MPSolverResponseStatus; |
28 | 28 | import com.google.ortools.linearsolver.MPVariableProto; |
29 | 29 | import com.google.ortools.linearsolver.PartialVariableAssignment; |
30 | | -import org.junit.Before; |
31 | | -import org.junit.Test; |
32 | | -import org.junit.runner.RunWith; |
33 | | -import org.junit.runners.JUnit4; |
| 30 | +import org.junit.jupiter.api.BeforeEach; |
| 31 | +import org.junit.jupiter.api.Test; |
34 | 32 |
|
35 | 33 | /** Test the Linear Solver java interface. */ |
36 | | -@RunWith(JUnit4.class) |
37 | 34 | public final class LinearSolverTest { |
38 | 35 | // Numerical tolerance for checking primal, dual, objective values |
39 | 36 | // and other values. |
40 | 37 | private static final double NUM_TOLERANCE = 1e-5; |
41 | 38 |
|
42 | | - @SuppressWarnings("EmptyMethods") |
43 | | - @Before |
| 39 | + @BeforeEach |
44 | 40 | public void setUp() { |
45 | 41 | Loader.loadNativeLibraries(); |
46 | 42 | } |
|
0 commit comments