Package test.cascade

Source Code of test.cascade.CascadeTest

package test.cascade;

import junit.framework.Assert;

import org.eweb4j.config.EWeb4JConfig;
import org.junit.BeforeClass;
import org.junit.Test;

import test.po.Master;
import test.po.Pet;


public class CascadeTest {
  @BeforeClass
  public static void prepare() throws Exception {
    String err = EWeb4JConfig.start("start.eweb.xml");
    if (err != null){
      System.out.println(">>>EWeb4J Start Error --> " + err);
      System.exit(-1);
    }
  }

  @Test
  public void testOneRel() throws Exception {
    Master master = new Master();
    master.setId(1);

    master.getPets().add(new Pet());
    master.getPets().add(new Pet());
    master.getPets().add(new Pet());

    //DAOFactory.getCascadeDAO().insert(master, "pets");
    Assert.assertEquals(true, true);
  }
}
TOP

Related Classes of test.cascade.CascadeTest

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.