11/*
2- * Copyright (c) 1998-2018 University Corporation for Atmospheric Research/Unidata
2+ * Copyright (c) 1998-2025 University Corporation for Atmospheric Research/Unidata
33 * See LICENSE for license information.
44 */
5+
56package ucar .unidata .geoloc ;
67
78import org .junit .Assert ;
9+ import org .junit .Before ;
10+ import org .junit .Test ;
811import org .slf4j .Logger ;
912import org .slf4j .LoggerFactory ;
1013import ucar .unidata .geoloc .projection .*;
11- import junit .framework .*;
1214import java .lang .invoke .MethodHandles ;
1315
1416/**
1517 *
1618 * @author John Caron
1719 */
18- public class TestLatLonProjection extends TestCase {
20+ public class TestLatLonProjection {
1921 private static final Logger logger = LoggerFactory .getLogger (MethodHandles .lookup ().lookupClass ());
2022
2123 private LatLonProjection p ;
2224
23- public TestLatLonProjection (String name ) {
24- super (name );
25- }
26-
25+ @ Before
2726 public void setUp () {
2827 p = new LatLonProjection ();
2928 }
@@ -66,6 +65,7 @@ void runCenter(double center) {
6665 }
6766 }
6867
68+ @ Test
6969 public void testLatLonToProjBB () {
7070 runCenter ();
7171 runCenter (110.45454545454547 );
@@ -82,6 +82,7 @@ public LatLonRect testIntersection(LatLonRect bbox, LatLonRect bbox2) {
8282 return result ;
8383 }
8484
85+ @ Test
8586 public void testIntersection () {
8687 LatLonRect bbox = new LatLonRect (LatLonPoint .create (40.0 , -100.0 ), 10.0 , 20.0 );
8788 LatLonRect bbox2 = new LatLonRect (LatLonPoint .create (-40.0 , -180.0 ), 120.0 , 300.0 );
@@ -108,6 +109,7 @@ private LatLonRect testExtend(LatLonRect bbox, LatLonRect bbox2) {
108109 return bbox ;
109110 }
110111
112+ @ Test
111113 public void testExtend () {
112114 LatLonRect bbox ;
113115
0 commit comments