mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
* 1476 - Query plan capture, initial wip capturing bind params * No effective change - Reset test default db to H2 * #1476 - Query plan capture, initial wip capturing bind params #1477 Update with consumer * #1476 - Query plan capture, initial wip capturing bind params #1477 Update with query plan request * #1476 - Query plan capture, initial wip capturing bind params #1477 Extract interface * #1476 - Query plan capture, initial wip capturing bind params #1477 Extract interface
35 lines
660 B
Java
35 lines
660 B
Java
package org.tests.batchload;
|
|
|
|
import io.ebean.BaseTestCase;
|
|
import io.ebean.Ebean;
|
|
import org.junit.Assert;
|
|
import org.junit.Test;
|
|
import org.tests.model.basic.Contact;
|
|
import org.tests.model.basic.Customer;
|
|
import org.tests.model.basic.ResetBasicData;
|
|
|
|
import java.util.List;
|
|
|
|
public class TestBasicNavOnEmpty extends BaseTestCase {
|
|
|
|
@Test
|
|
public void test() {
|
|
|
|
ResetBasicData.reset();
|
|
|
|
Customer c = new Customer();
|
|
c.setName("HelloRob");
|
|
|
|
Ebean.save(c);
|
|
|
|
c = Ebean.find(Customer.class, c.getId());
|
|
|
|
List<Contact> contacts = c.getContacts();
|
|
Assert.assertEquals(0, contacts.size());
|
|
|
|
// cleanup
|
|
Ebean.delete(c);
|
|
}
|
|
|
|
}
|