Package org.jugile.proto2.domain

Source Code of org.jugile.proto2.domain.BookTest

package org.jugile.proto2.domain;

import org.jugile.demo.domain.Book;
import 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();
  }
 
}
TOP

Related Classes of org.jugile.proto2.domain.BookTest

TOP
Copyright © 2018 www.massapi.com. 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.