Package org.jugile.demo.domain

Examples of org.jugile.demo.domain.Domain


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();
  }
View Full Code Here

TOP

Related Classes of org.jugile.demo.domain.Domain

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.