19 package testsuite.clusterj;
21 import com.mysql.clusterj.ClusterJException;
27 createSessionFactory();
34 rollbackWithoutBegin();
36 commitWithSetRollbackOnly();
40 private void beginAfterBegin() {
44 error(
"Begin after begin failed to throw exception.");
45 }
catch (ClusterJException ex) {
47 errorIfNotEqual(
"Begin after begin should leave transaction active",
54 private void commitWithSetRollbackOnly() {
59 error(
"Commit after setRollbackOnly failed to throw exception.");
60 }
catch (ClusterJException ex) {
62 errorIfNotEqual(
"Commit after setRollbackOnly should leave transaction not active",
67 private void commitWithoutBegin() {
70 error(
"Commit without begin failed to throw exception.");
71 }
catch (ClusterJException ex) {
73 errorIfNotEqual(
"Commit without begin should leave transaction not active",
78 private void rollbackWithoutBegin() {
81 error(
"Rollback without begin failed to throw exception.");
82 }
catch (ClusterJException ex) {
84 errorIfNotEqual(
"Rollback without begin should leave transaction not active",