@Test public void lengthFromCreate() { XMLDocument doc = db.createFolder("/top") .documents() .build(Name.create(db, "foo")) .elem("root") .end("root") .commit(); assertThat(doc.length(), Matchers.greaterThan(0L)); }
@Test public void lengthFromLoad() { XMLDocument doc = db.createFolder("/top").documents().load(Name.create(db, "foo"), Source.xml("<root/>")); assertThat(doc.length(), Matchers.greaterThan(0L)); }