import org.jugile.util.JugileTestCase;
public class BookTest extends JugileTestCase {
public void testFoo() {
Domain d = Domain.getDomain();
d.createBook("b1");
d.createBook("b2");
d.createBook("b3");
d.createBook("foo");
d.createBook("foo");
d.commit();
for (Book b : d.getBooks().byTitle("foo")) {
print("book: " + b.getTitle());
}
for (Book b : d.getBooks()) b.delete();
}