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: TestNotSupported.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 session bean is
28: * following the JSR 220.The items covered in this test are: 12.6.2.1.
29: * @reference JSR 220-PROPOSED FINAL
30: * @requirement Application Server must be running; the bean
31: * org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.SFSBContainerTransactionNotSupported
32: * must be deployed for testing stateful session bean. And, the bean
33: * org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.SLSBContainerTransactionNotSupported
34: * must be deployed for testing stateless session bean.
35: * @setup gets the reference of the bean and binds the databases specified in
36: * the EmbeddedTest.
37: * @author Gisele Pinheiro Souza
38: * @author Eduardo Studzinski Estima de Castro
39: */
40: public class TestNotSupported extends TestContainerTransactionBase {
41:
42: /**
43: * Verifies if the container uses the same transaction that the client. The
44: * client rollback must not to force a bean rollback, because the
45: * transaction context must to be dissociate.
46: * @input -
47: * @output the table correctly inserted.
48: * @throws Exception if an error during the tests occurs.
49: */
50: @Override
51: public void testUsingClientTrans() throws Exception {
52: super .testUsingClientTrans();
53: }
54:
55: /**
56: * Verifies if the EJBContext.setRollbackOnly() works properly.
57: * For the attribute not supported, the container must throw an IllegalStateException.
58: * @input -
59: * @output an IllegalStateException must be thrown.
60: * @throws Exception if an error during the test occurs.
61: */
62: @Override
63: public void testSetRollbackOnly() throws Exception {
64: super .testSetRollbackOnly();
65: }
66:
67: /**
68: * Verifies if the EJBContext.getRollbackOnly() works properly.
69: * For the attribute not supported, the container must throw an IllegalStateException.
70: * @input -
71: * @output an IllegalStateException must be thrown.
72: * @throws Exception if an error during the test occurs.
73: */
74: @Override
75: public void testGetRollbackOnly() throws Exception {
76: super.testGetRollbackOnly();
77: }
78:
79: }
|