KickJava   Java API By Example, From Geeks To Geeks.

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


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: TestSupportsExceptionRemoteSFSB.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.SFSBContainerTransactionSupportsRuntime;
28 import org.objectweb.easybeans.tests.transaction.containermanaged.base.TestSupportsException;
29 import org.testng.annotations.BeforeMethod;
30 import org.testng.annotations.Test;
31
32
33 /**
34  * Verifies if the container-managed transaction in the session bean is
35  * following the JSR 220. The container must handle the different types of
36  * exception in the transaction context. The items covered in this test are:
37  * 13.3
38  * @reference JSR 220-PROPOSED FINAL
39  * @requirement Application Server must be running; the bean .
40  * SFSBContainerTransactionSupportsNewApp,
41  * SFSBContainerTransactionSupportsNewRollback and
42  * SFSBContainerTransactionSupportsNewRuntime must be deployed for
43  * testing stateful session bean.
44  * @setup gets the reference of the bean and binds the databases specified in
45  * the EmbeddedTest.
46  * @author Gisele Pinheiro Souza
47  * @author Eduardo Studzinski Estima de Castro
48  */

49 public class TestSupportsExceptionRemoteSFSB extends TestSupportsException {
50
51     /**
52      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestSupportsException
53      * @throws Exception if an error during the initialization occurs.
54      */

55     @Test(groups = {"runtime exception tests"})
56     @Override JavaDoc
57     public void testCallOtherBeanNotSupWithoutTrans() throws Exception JavaDoc {
58         super.testCallOtherBeanNotSupWithoutTrans();
59     }
60
61     /**
62      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestSupportsException
63      * @throws Exception if an error during the initialization occurs.
64      */

65     @Test(groups = {"runtime exception tests"})
66     @Override JavaDoc
67     public void testCallOtherBeanNotSupWithTrans() throws Exception JavaDoc {
68         super.testCallOtherBeanNotSupWithTrans();
69     }
70
71     /**
72      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestSupportsException
73      * @throws Exception if an error during the initialization occurs.
74      */

75     @Test(groups = {"runtime exception tests"})
76     @Override JavaDoc
77     public void testCallOtherBeanReqWithoutTrans() throws Exception JavaDoc {
78         super.testCallOtherBeanReqWithoutTrans();
79     }
80
81     /**
82      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestSupportsException
83      * @throws Exception if an error during the initialization occurs.
84      */

85     @Test(groups = {"runtime exception tests"})
86     @Override JavaDoc
87     public void testCallOtherBeanReqWithTrans() throws Exception JavaDoc {
88         super.testCallOtherBeanReqWithTrans();
89     }
90
91     /**
92      * Creates a bean used during the tests before each test.
93      * @throws Exception if a lookup error occurs.
94      */

95    @Override JavaDoc
96    public void createBeanRuntime() throws Exception JavaDoc {
97         super.createBeanRuntime(SFSBContainerTransactionSupportsRuntime.class);
98     }
99
100    /**
101      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestContainerTransactionException
102      * @throws Exception if an error during the initialization occurs.
103      */

104     @BeforeMethod
105     @Override JavaDoc
106     public void setup() throws Exception JavaDoc {
107         super.setup();
108     }
109
110
111 }
112
Popular Tags