@Test(dataProvider = "wrongEndDataSet") public void testWrongReadEnd(byte[] testArray, int headerOffSet) throws BinaryNumberConversionException, IOException { Grib2Endsection end = endReader.readEndValues(testArray, headerOffSet); assertThat(end).isNull(); }
@Test(dataProvider = "goodEndDataSet") public void testReadEnd( byte[] testArray, int headerOffSet, Grib2Endsection expectedResponseObject) throws BinaryNumberConversionException, IOException { Grib2Endsection end = endReader.readEndValues(testArray, headerOffSet); assertThat(end).isNotNull(); assertThat(end).isEqualTo(expectedResponseObject); }