LandsatTypeInfo { static boolean isESALandsatCollection(String fileName) { return LandsatType.ESA_LANDSAT_COLLECTION.matchesFileNamepattern(fileName); } private  LandsatTypeInfo(); static boolean isLandsat(String fileName); static boolean isLandsatL2(String fileName); static boolean isLandsatLevel2(String fileName);  }
@Test public void testIsESALandsatCollection() throws Exception { assertTrue(LandsatTypeInfo.isESALandsatCollection("LC08_L1TP_201040_20181019_20181019_01_RT_MTI_MTL.txt")); assertTrue(LandsatTypeInfo.isESALandsatCollection("LC08_L1GT_209019_20180504_20180504_01_RT_KIS_MTL.txt")); assertTrue(LandsatTypeInfo.isESALandsatCollection("LC08_L1TP_204030_20180226_20180226_01_RT_MTI_MTL.txt")); assertFalse(LandsatTypeInfo.isESALandsatCollection("LC08_L1TP_194028_20160622_20170323_01_T1_MTL.txt")); }