KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > transaction > containermanaged > stateful > TestNotSupportedRemoteSFSB


1 /**
2  * EasyBeans
3  * Copyright (C) 2006 Bull S.A.S.
4  * Contact: easybeans@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: TestNotSupportedRemoteSFSB.java 980 2006-07-28 13:20:32Z studzine $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.easybeans.tests.transaction.containermanaged.stateful;
26
27 import org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransactionNotSupported;
28 import org.objectweb.easybeans.tests.transaction.containermanaged.base.TestNotSupported;
29 import org.testng.annotations.BeforeClass;
30 import org.testng.annotations.BeforeMethod;
31 import org.testng.annotations.Test;
32
33 /**
34  * Verifies if the container-managed transaction in the stateful bean is
35  * following the JSR 220.The items covered in this test are: 12.6.2.1.
36  * @reference JSR 220-PROPOSED FINAL
37  * @requirement Application Server must be running; the bean
38  * org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.SFSBContainerTransactionNotSupported
39  * must be deployed.
40  * @setup gets the reference of the bean and binds the databases specified in
41  * the EmbeddedTest.
42  * @author Gisele Pinheiro Souza
43  * @author Eduardo Studzinski Estima de Castro
44  */

45 public class TestNotSupportedRemoteSFSB extends TestNotSupported {
46
47     /**
48      * Creates a new instance of the bean.
49      * @throws Exception if a lookup error occurs.
50      */

51     @BeforeMethod
52     public void createBean() throws Exception JavaDoc {
53         super.createBean(SFSBContainerTransactionNotSupported.class);
54     }
55
56     /**
57      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestNotSupported
58      * @throws Exception if an error during the test startup occurs.
59      */

60     @BeforeClass
61     @Override JavaDoc
62     public void setup() throws Exception JavaDoc {
63         super.setup();
64     }
65
66     /**
67      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestNotSupported
68      * @throws Exception if an error during the tests occurs.
69      */

70     @Test(groups = {"not supported attribute features"})
71     @Override JavaDoc
72     public void testUsingClientTrans() throws Exception JavaDoc {
73         super.testUsingClientTrans();
74     }
75
76     /**
77      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestNotSupported
78      * @throws Exception if an error during the test occurs.
79      */

80     @Test(groups = {"roll back"}, expectedExceptions = java.lang.IllegalStateException JavaDoc.class)
81     @Override JavaDoc
82     public void testSetRollbackOnly() throws Exception JavaDoc {
83         super.testSetRollbackOnly();
84     }
85
86     /**
87      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestNotSupported
88      * @throws Exception if an error during the test occurs.
89      */

90     @Test(groups = {"roll back"}, expectedExceptions = java.lang.IllegalStateException JavaDoc.class)
91     @Override JavaDoc
92     public void testGetRollbackOnly() throws Exception JavaDoc {
93         super.testGetRollbackOnly();
94     }
95
96     /**
97      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestNotSupported
98      */

99     @BeforeMethod
100     @Override JavaDoc
101     public void deleteTable() {
102         super.deleteTable();
103     }
104
105     /**
106      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestNotSupported
107      * @throws Exception if an error during the tests occurs.
108      */

109     @Test(groups = {"general attribute features"}, expectedExceptions = java.lang.IllegalStateException JavaDoc.class)
110     @Override JavaDoc
111     public void testGetUserTransactionWithEJBContext() throws Exception JavaDoc {
112         super.testGetUserTransactionWithEJBContext();
113     }
114
115     /**
116      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestNotSupported
117      * @throws Exception if an error during the tests occurs.
118      */

119     @Test(groups = {"general attribute features"}, expectedExceptions = javax.naming.NameNotFoundException JavaDoc.class)
120     @Override JavaDoc
121     public void testGetUserTransactionWithLookup() throws Exception JavaDoc {
122         super.testGetUserTransactionWithLookup();
123     }
124
125     /**
126      * Makes a rollback in the transaction actives.
127      * @throws Exception if a transaction exception occurs.
128      */

129     @BeforeMethod
130     @Override JavaDoc
131     public void cleanTransaction() throws Exception JavaDoc{
132         super.cleanTransaction();
133     }
134
135 }
136
Popular Tags