ModisFileReader { static boolean hasInvalidScaleAndOffset(float[] scales, float[] offsets, int readerIdx) { return scales.length <= readerIdx || offsets.length <= readerIdx; } ModisFileReader(); void addRastersAndGeoCoding(final Product product, ModisGlobalAttributes globalAttribs, NetCDFVariables netCDFVariables); ModisBandReader getBandReader(final Band band); void close();  }
@Test public void testHasInvalidScaleAndOffset_invalidScale() { assertTrue(ModisFileReader.hasInvalidScaleAndOffset(new float[2], new float[4], 3)); }
@Test public void testHasInvalidScaleAndOffset_invalidOffset() { assertTrue(ModisFileReader.hasInvalidScaleAndOffset(new float[4], new float[2], 3)); }
@Test public void testHasInvalidScaleAndOffset() { assertFalse(ModisFileReader.hasInvalidScaleAndOffset(new float[4], new float[4], 3)); }