KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.mmbase.bridge.Cloud;
14 import org.mmbase.bridge.Transaction;
15
16 /**
17  * Test class <code>Node</code> from the bridge package. The tests are done on
18  * a filled node inside a transaction.
19  *
20  * @author Michiel Meeuwissen
21  * @author Jaco de Groot
22  */

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