コード例 #1
0
  @Test(dataProvider = "wrongEndDataSet")
  public void testWrongReadEnd(byte[] testArray, int headerOffSet)
      throws BinaryNumberConversionException, IOException {

    Grib2Endsection end = endReader.readEndValues(testArray, headerOffSet);
    assertThat(end).isNull();
  }
コード例 #2
0
  @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);
  }