KickJava   Java API By Example, From Geeks To Geeks.

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


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

48 public class TestNeverExceptionRemoteSFSB extends TestNeverException {
49
50
51
52     /**
53      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestNeverException
54      * @throws Exception if an error during the test occurs.
55      */

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

66     @Test(groups = {"runtime exception tests"})
67     @Override JavaDoc
68     public void testCallOtherBeanReq() throws Exception JavaDoc {
69         super.testCallOtherBeanReq();
70     }
71
72
73
74
75     /**
76      * Creates a bean used during the test before each method.
77      * @throws Exception if a lookup error occurs.
78      */

79    @Override JavaDoc
80     public void createBeanRuntime() throws Exception JavaDoc {
81         super.createBeanRuntime(SFSBContainerTransacNeverRuntime.class);
82     }
83
84     /**
85      * @see org.objectweb.easybeans.tests.transaction.containermanaged.base.TestContainerTransactionException
86      * @throws Exception if an error during the test occurs.
87      */

88     @BeforeMethod
89     @Override JavaDoc
90     public void setup() throws Exception JavaDoc {
91         super.setup();
92     }
93
94 }
95
Popular Tags