KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > EmptyNodeTestTransaction


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10
11 package org.mmbase.bridge;
12
13 /**
14  * Test class <code>Node</code> from the bridge package. The tests are done on
15  * an empty node inside a transaction.
16  *
17  * @author Michiel Meeuwissen
18  * @author Jaco de Groot
19  */

20 public class EmptyNodeTestTransaction extends EmptyNodeTest {
21
22     public EmptyNodeTestTransaction(String JavaDoc name) {
23         super(name);
24     }
25
26     protected Cloud getCloud() {
27         return super.getCloud().getTransaction("test_transaction");
28     }
29
30     public void tearDown() {
31         // simply roll back transaction
32
Transaction trans = (Transaction) getCloud();
33         trans.cancel();
34     }
35
36 }
37
Popular Tags