Exemple #1
0
 /**
  * Creates the specified test databases.
  *
  * @param db database numbers
  */
 private static void create(final int... db) {
   for (final int d : db) {
     final String[] doc = DOCS[d - 1];
     execute(new CreateDB(doc[0], doc[1]));
   }
 }
Exemple #2
0
 /** Detects malformed namespace hierarchy adding a document to an empty DB. */
 @Test
 public void nsHierarchy4() {
   execute(new CreateDB("d00x"));
   execute(new Add("x", "<A xmlns='A'><B/><C/></A>"));
   query("/", "<A xmlns='A'><B/><C/></A>");
 }