@Test public void testGetSensorTypeDoesNotAcceptNullParameter() { try { SmacUtils.getSensorType(null); fail("IllegalArgumentException expected"); } catch (IllegalArgumentException ignored) { } }
public static String getSensorType(String productType) { Guardian.assertNotNull("productType", productType); if (isSupportedAatsrProductType(productType)) { return SensorCoefficientManager.AATSR_NAME; } else if (isSupportedMerisProductType(productType)) { return SensorCoefficientManager.MERIS_NAME; } return null; }
SmacUtils { public static String getSensorType(String productType) { Guardian.assertNotNull("productType", productType); if (isSupportedAatsrProductType(productType)) { return SensorCoefficientManager.AATSR_NAME; } else if (isSupportedMerisProductType(productType)) { return SensorCoefficientManager.MERIS_NAME; } return null; } }
SmacUtils { public static String getSensorType(String productType) { Guardian.assertNotNull("productType", productType); if (isSupportedAatsrProductType(productType)) { return SensorCoefficientManager.AATSR_NAME; } else if (isSupportedMerisProductType(productType)) { return SensorCoefficientManager.MERIS_NAME; } return null; }  }
SmacUtils { public static String getSensorType(String productType) { Guardian.assertNotNull("productType", productType); if (isSupportedAatsrProductType(productType)) { return SensorCoefficientManager.AATSR_NAME; } else if (isSupportedMerisProductType(productType)) { return SensorCoefficientManager.MERIS_NAME; } return null; }  static String getSensorType(String productType); static boolean isSupportedMerisProductType(String productType); static boolean isSupportedAatsrProductType(String productType); static boolean isSupportedProductType(String productType); }
SmacUtils { public static String getSensorType(String productType) { Guardian.assertNotNull("productType", productType); if (isSupportedAatsrProductType(productType)) { return SensorCoefficientManager.AATSR_NAME; } else if (isSupportedMerisProductType(productType)) { return SensorCoefficientManager.MERIS_NAME; } return null; }  static String getSensorType(String productType); static boolean isSupportedMerisProductType(String productType); static boolean isSupportedAatsrProductType(String productType); static boolean isSupportedProductType(String productType);  }