Ejemplo n.º 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();
 }
Ejemplo n.º 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());
  }