package org.jugile.daims;
import org.jugile.proto2.domain.Domain;
import org.jugile.proto2.domain.Person;
import org.jugile.util.JugileTestCase;
public class ConcurrencyTest extends JugileTestCase {
public void testCommitAfterRollback() {
Domain d = Domain.getDomain();
d.rollback();
d.commit();
}
public void testCommitAndRollback() {
Domain d = Domain.getDomain();
Person p = d.createPerson();
assertNotNull(p);
d.commit();
p = d.getPerson(p.id());
d.commit();
d.commit();
d.rollback();
p = d.getPerson(p.id());
d.rollback();
d.commit();
}
public void testCreateAndDeleteSameObjects() {
// Domain d = Domain.getDomain();
// Person p = d.createPerson().setName("fi");
// p.delete();
// d.commit();
}
}