KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > transaction > containermanaged > base > TestNotSupported


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: TestNotSupported.java 980 2006-07-28 13:20:32Z studzine $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.easybeans.tests.transaction.containermanaged.base;
26
27
28
29 /**
30  * Verifies if the container-managed transaction in the session bean is
31  * following the JSR 220.The items covered in this test are: 12.6.2.1.
32  * @reference JSR 220-PROPOSED FINAL
33  * @requirement Application Server must be running; the bean
34  * org.objectweb.easybeans.tests.common.ejbs.stateful.containermanaged.SFSBContainerTransactionNotSupported
35  * must be deployed for testing stateful session bean. And, the bean
36  * org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.SLSBContainerTransactionNotSupported
37  * must be deployed for testing stateless session bean.
38  * @setup gets the reference of the bean and binds the databases specified in
39  * the EmbeddedTest.
40  * @author Gisele Pinheiro Souza
41  * @author Eduardo Studzinski Estima de Castro
42  */

43 public class TestNotSupported extends TestContainerTransactionBase{
44
45     /**
46      * Verifies if the container uses the same transaction that the client. The
47      * client rollback must not to force a bean rollback, because the
48      * transaction context must to be dissociate.
49      * @input -
50      * @output the table correctly inserted.
51      * @throws Exception if an error during the tests occurs.
52      */

53     @Override JavaDoc
54     public void testUsingClientTrans() throws Exception JavaDoc {
55        super.testUsingClientTrans();
56     }
57
58     /**
59      * Verifies if the EJBContext.setRollbackOnly() works properly.
60      * For the attribute not supported, the container must throw an IllegalStateException.
61      * @input -
62      * @output an IllegalStateException must be thrown.
63      * @throws Exception if an error during the test occurs.
64      */

65     @Override JavaDoc
66     public void testSetRollbackOnly() throws Exception JavaDoc{
67         super.testSetRollbackOnly();
68     }
69
70     /**
71      * Verifies if the EJBContext.getRollbackOnly() works properly.
72      * For the attribute not supported, the container must throw an IllegalStateException.
73      * @input -
74      * @output an IllegalStateException must be thrown.
75      * @throws Exception if an error during the test occurs.
76      */

77     @Override JavaDoc
78     public void testGetRollbackOnly() throws Exception JavaDoc{
79         super.testGetRollbackOnly();
80     }
81
82 }
83
Popular Tags