SHARE
TWEET

Untitled

a guest Oct 20th, 2017 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class CompareCrses extends TransformationTest {
  2.  
  3.   @Test
  4.   public void comparingCrses() throws Exception {
  5.     CoordinateReferenceSystem expectedCrs = CRS.decode("EPSG:32632");
  6.     CoordinateReferenceSystem actualCrs = getEPSG32632ShapeValidFeatures().getSchema()
  7.     .getCoordinateReferenceSystem();
  8.     Assert.assertEquals(expectedCrs, actualCrs);
  9.     // this one won't compile
  10. //  Assert.assertTrue(expectedCrs.equals(actualCrs, false));
  11.   }
  12.  
  13.   @Test
  14.   public void comparingCrsesByTheirNames() throws Exception {
  15.     CoordinateReferenceSystem expectedCrs = CRS.decode("EPSG:32632");
  16.     CoordinateReferenceSystem actualCrs = getEPSG32632ShapeValidFeatures().getSchema()
  17.     .getCoordinateReferenceSystem();
  18.     Assert.assertEquals(expectedCrs.getName(), actualCrs.getName());
  19.   }
  20. }
RAW Paste Data
Top