Sentinel3Utils { public static String getTheoreticalIspCount(String ispContDup, String ispCountCorrupt, String ispCountUnsynch, String ispCountFormatErr){ if(ispContDup != null && !ispContDup.isEmpty()) return ispContDup; else if(ispCountCorrupt != null && !ispCountCorrupt.isEmpty()) return ispCountCorrupt; else if(ispCountUnsynch != null && !ispCountUnsynch.isEmpty()) return ispCountUnsynch; else if(ispCountFormatErr != null && !ispCountFormatErr.isEmpty()) return ispCountFormatErr; else return "N/A"; } private  Sentinel3Utils(); static String points2GML(String pointsString); static String points2JTS(String pointsString); static String formatNumber(double value); static String formatInteger(Object value); static String getTheoreticalIspCount(String ispContDup, String ispCountCorrupt, 
		   String ispCountUnsynch,  String ispCountFormatErr); static boolean isFullResolution(Object source);  }
@Test public void testGetTheoreticalIspCount1() throws Exception { String ispContDup = null; String ispCountCorrupt = ""; String ispCountUnsynch = "2349830"; String ispCountFormatErr = ""; String expected = "2349830"; String ispCount = Sentinel3Utils.getTheoreticalIspCount(ispContDup, ispCountCorrupt, ispCountUnsynch, ispCountFormatErr); Assert.assertEquals(expected, ispCount); }
@Test public void testGetTheoreticalIspCount2() throws Exception { String ispContDup = "2349830"; String ispCountCorrupt = "2349830"; String ispCountUnsynch = "2349830"; String ispCountFormatErr = ""; String expected = "2349830"; String ispCount = Sentinel3Utils.getTheoreticalIspCount(ispContDup, ispCountCorrupt, ispCountUnsynch, ispCountFormatErr); Assert.assertEquals(expected, ispCount); }