예제 #1
0
 @Test
 @Ignore
 public void loadMarshall() throws Exception {
   FileWriter writer = new FileWriter(file);
   for (int i = 0; i < 1000000; i++) {
     marshaller.marshall(container, writer);
   }
   writer.close();
 }
예제 #2
0
  @Test
  @Ignore
  public void loadRoundtrip() throws Exception {
    FileWriter writer = new FileWriter(file);
    for (int i = 0; i < 1000000; i++) {
      marshaller.marshall(container, writer);
    }
    writer.close();

    FileReader reader = new FileReader(file);
    Iterator<Record> iterator = unmarshaller.unmarshall(reader);
    while (iterator.hasNext()) {
      iterator.next();
    }
    reader.close();

    assertEquals("", unmarshaller.getCurrentJunk());
  }