LandsatTypeInfo { static boolean isMss(String fileName) { return LandsatType.LANDSAT_MSS.matchesFileNamepattern(fileName); } private  LandsatTypeInfo(); static boolean isLandsat(String fileName); static boolean isLandsatL2(String fileName); static boolean isLandsatLevel2(String fileName);  }
@Test public void testIsLandsatMSSFilename() throws Exception { assertTrue(LandsatTypeInfo.isMss("LM11870291976166ESA00_MTL.txt")); assertTrue(LandsatTypeInfo.isMss("LM32170241982254XXX01_MTL.txt")); assertTrue(LandsatTypeInfo.isMss("LM42310081982267ESA00_MTL.txt")); assertTrue(LandsatTypeInfo.isMss("LM52010241984295AAA03_MTL.txt")); assertFalse(LandsatTypeInfo.isMss("LT40140341983030XXX13_MTL.txt")); }