TestRunner.run(QueryPoolTest.class);
}
public void testDifferentQueries() {
try {
XQueryService service = (XQueryService) testCollection.getService("XQueryService", "1.0");
for (int i = 0; i < 10000; i++) {
System.out.println("Inserting node " + i + "...");
String query = "update insert <node id='id" + Integer.toHexString(i) + "'>" +
"<p>Some longer text <b>content</b> in this node. Some longer text <b>content</b> in this node. " +
"Some longer text <b>content</b> in this node. Some longer text <b>content</b> in this node.</p>" +
"</node> " +
"into //test[@id = 't1']";
service.execute(new StringSource(query));
}
} catch (XMLDBException e) {
e.printStackTrace();
fail(e.getMessage());
}