KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.util.*;
13 import org.w3c.dom.Document JavaDoc;
14
15 /**
16  * Test class <code>Node</code> from the bridge package. The tests are done on
17  * an empty node inside a transaction.
18  *
19  * @author Michiel Meeuwissen
20  */

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