Skip to content

Commit 9359426

Browse files
authored
Merge pull request #1504 from lesserwhirls/test
Fix TestNcMLStrides
2 parents 2e7f1c8 + db7d119 commit 9359426

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cdm-test/src/test/java/ucar/nc2/ncml/TestNcMLStrides.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
package ucar.nc2.ncml;
77

8+
import org.junit.After;
9+
import org.junit.Before;
810
import org.junit.Test;
911
import org.junit.experimental.categories.Category;
10-
import org.junit.jupiter.api.AfterEach;
11-
import org.junit.jupiter.api.BeforeEach;
1212
import org.slf4j.Logger;
1313
import org.slf4j.LoggerFactory;
1414
import ucar.ma2.ArrayInt;
@@ -31,8 +31,8 @@ public class TestNcMLStrides {
3131
NetcdfFile ncfile = null;
3232
String location = "file:" + TestDir.cdmUnitTestDir + "agg/strides/strides.ncml";
3333

34-
@BeforeEach
35-
public void setUp() {
34+
@Before
35+
public void set_up() {
3636
try {
3737
ncfile = NcMLReader.readNcML(location, null);
3838
// System.out.println("ncfile opened = "+location);
@@ -44,8 +44,8 @@ public void setUp() {
4444
}
4545
}
4646

47-
@AfterEach
48-
protected void tearDown() throws IOException {
47+
@After
48+
public void tearDown() throws IOException {
4949
ncfile.close();
5050
}
5151

0 commit comments

Comments
 (0)