01: /**
02: * EasyBeans
03: * Copyright (C) 2006 Bull S.A.S.
04: * Contact: easybeans@ow2.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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: TestNotSupportedExceptionRemoteSFSB.java 1970 2007-10-16 11:49:25Z benoitf $
23: * --------------------------------------------------------------------------
24: */package org.ow2.easybeans.tests.transaction.containermanaged.stateful;
25:
26: import org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.transaction.SFSBContainerTransacNotSupportedRuntime;
27: import org.ow2.easybeans.tests.transaction.containermanaged.base.TestNotSupportedException;
28: import org.testng.annotations.BeforeMethod;
29: import org.testng.annotations.Test;
30:
31: /**
32: * Verifies if the container-managed transaction in the session bean is
33: * following the JSR 220. The container must handle the different types of
34: * exception in the transaction context. The items covered in this test are:
35: * 13.3
36: * @reference JSR 220-PROPOSED FINAL
37: * @requirement Application Server must be running; the bean .
38: * SFSBContainerTransactionNotSupportedApp,
39: * SFSBContainerTransactionNotSupportedRollback and
40: * SFSBContainerTransactionNotSupportedRuntime must be deployed for
41: * testing stateful session bean.
42: * @setup gets the reference of the bean and binds the databases specified in
43: * the EmbeddedTest.
44: * @author Gisele Pinheiro Souza
45: * @author Eduardo Studzinski Estima de Castro
46: */
47: public class TestNotSupportedExceptionRemoteSFSB extends
48: TestNotSupportedException {
49:
50: /**
51: * @see org.ow2.easybeans.tests.transaction.containermanaged.base.TestNotSupportedException
52: * @throws Exception if an error during the tests occurs.
53: */
54: @Test(groups={"runtime exception tests"})
55: @Override
56: public void testCallOtherBeanReq() throws Exception {
57: super .testCallOtherBeanReq();
58: }
59:
60: /**
61: * @see org.ow2.easybeans.tests.transaction.containermanaged.base.TestNotSupportedException
62: * @throws Exception if an error during the tests occurs.
63: */
64: @Test(groups={"runtime exception tests"})
65: @Override
66: public void testCallOtherBeanNotSup() throws Exception {
67: super .testCallOtherBeanNotSup();
68: }
69:
70: /**
71: * Creates a bean used during the test before each method.
72: * @throws Exception if a lookup error occurs.
73: */
74: @Override
75: public void createBeanRuntime() throws Exception {
76: super
77: .createBeanRuntime(SFSBContainerTransacNotSupportedRuntime.class);
78: }
79:
80: /**
81: * @see org.ow2.easybeans.tests.transaction.containermanaged.base.TestContainerTransactionException
82: * @throws Exception if the transaction cannot be closed.
83: */
84: @BeforeMethod
85: @Override
86: public void setup() throws Exception {
87: super.setup();
88: }
89:
90: }
|