Пример #1
0
  @Test
  public void testLoadSuccessful() {
    final DataLoader<T> loader = createDataLoader();
    final T actualData = loader.load(getTestDataFileName());

    assertTrue(verifyData(actualData));
  }
Пример #2
0
 @Test(expected = RuntimeException.class)
 public void testLoadFailsFileNotFound() {
   final DataLoader<T> loader = createDataLoader();
   loader.load("non-existent-file");
 }