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: TestSupports.java 1970 2007-10-16 11:49:25Z benoitf $
23: * --------------------------------------------------------------------------
24: */package org.ow2.easybeans.tests.transaction.containermanaged.base;
25:
26: /**
27: * Verifies if the container-managed transaction in the stateful bean is
28: * following the JSR 220.The items covered in this test are: 12.6.2.3.
29: * @reference JSR 220-PROPOSED FINAL
30: * @requirement Application Server must be running; the bean
31: * org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.SFSBContainerTransactionSupports
32: * must be deployed.
33: * @setup gets the reference of SFSBContainerTransactionSupports and binds the
34: * databases specified in the EmbeddedTest.
35: * @author Gisele Pinheiro Souza
36: * @author Eduardo Studzinski Estima de Castro
37: */
38: public class TestSupports extends TestContainerTransactionBase {
39:
40: /**
41: * Verifies if the container uses the same transaction that the client. The
42: * client rollback must to force a bean rollback, because the both use the
43: * same transaction. In this case the supports has the same behaviour that
44: * the required.
45: * @input -
46: * @output a SQLException because the table must not be created.
47: * @throws Exception if an error during the tests occurs.
48: */
49: @Override
50: public void testUsingClientTrans() throws Exception {
51: super .testUsingClientTrans();
52: }
53:
54: /**
55: * Verifies if the EJBContext.setRollbackOnly() works properly. For the
56: * attribute supports, the container must throw an IllegalStateException.
57: * @input -
58: * @output an IllegalStateException must be thrown.
59: * @throws Exception if an error during the test occurs.
60: */
61: @Override
62: public void testSetRollbackOnly() throws Exception {
63: super .testSetRollbackOnly();
64: }
65:
66: /**
67: * Verifies if the EJBContext.getRollbackOnly() works properly. For the
68: * attribute supports the container must throw an IllegalStateException.
69: * @input -
70: * @output an IllegalStateException must be thrown.
71: * @throws Exception if an error during the test occurs.
72: */
73: @Override
74: public void testGetRollbackOnly() throws Exception {
75: super.testGetRollbackOnly();
76: }
77:
78: }
|