Organise imports

This commit is contained in:
rbygrave
2012-10-02 13:34:30 +13:00
parent 902990e159
commit 21d63c7424
83 changed files with 5188 additions and 5156 deletions
@@ -1,45 +1,45 @@
package com.avaje.tests.inheritance;
import com.avaje.ebean.Ebean;
import com.avaje.tests.model.basic.TIntChild;
import com.avaje.tests.model.basic.TIntRoot;
import junit.framework.Assert;
import junit.framework.TestCase;
public class TestIntInherit extends TestCase {
public void testMe() {
TIntRoot r = new TIntRoot();
r.setName("root1");
TIntRoot r2 = new TIntRoot();
r.setName("root2");
TIntChild c1 = new TIntChild();
c1.setName("child1");
c1.setChildProperty("cp1");
TIntChild c2 = new TIntChild();
c2.setName("child2");
c2.setChildProperty("cp2");
Ebean.save(r);
Ebean.save(r2);
Ebean.save(c1);
Ebean.save(c2);
TIntRoot result1 = Ebean.find(TIntRoot.class, r.getId());
Assert.assertTrue(result1 instanceof TIntRoot);
TIntRoot ref3 = Ebean.getReference(TIntRoot.class, c1.getId());
Assert.assertTrue(ref3 instanceof TIntChild);
TIntRoot result3 = Ebean.find(TIntRoot.class, c1.getId());
Assert.assertTrue(result3 instanceof TIntChild);
}
}
package com.avaje.tests.inheritance;
import junit.framework.Assert;
import junit.framework.TestCase;
import com.avaje.ebean.Ebean;
import com.avaje.tests.model.basic.TIntChild;
import com.avaje.tests.model.basic.TIntRoot;
public class TestIntInherit extends TestCase {
public void testMe() {
TIntRoot r = new TIntRoot();
r.setName("root1");
TIntRoot r2 = new TIntRoot();
r.setName("root2");
TIntChild c1 = new TIntChild();
c1.setName("child1");
c1.setChildProperty("cp1");
TIntChild c2 = new TIntChild();
c2.setName("child2");
c2.setChildProperty("cp2");
Ebean.save(r);
Ebean.save(r2);
Ebean.save(c1);
Ebean.save(c2);
TIntRoot result1 = Ebean.find(TIntRoot.class, r.getId());
Assert.assertTrue(result1 instanceof TIntRoot);
TIntRoot ref3 = Ebean.getReference(TIntRoot.class, c1.getId());
Assert.assertTrue(ref3 instanceof TIntChild);
TIntRoot result3 = Ebean.find(TIntRoot.class, c1.getId());
Assert.assertTrue(result3 instanceof TIntChild);
}
}