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: ItfTransAttributeTester.java 1970 2007-10-16 11:49:25Z benoitf $
23: * --------------------------------------------------------------------------
24: */package org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.xmldescriptor;
25:
26: /**
27: * Verifies if the deployment descriptor overrides the transaction attribute
28: * defined in the class. Also, verifies if each type of transaction attribute
29: * can be specified by deployment descriptor.
30: * @author Gisele Pinheiro Souza
31: * @author Eduardo Studzinski Estima de Castro
32: */
33: public interface ItfTransAttributeTester {
34:
35: /**
36: * Name of the JBDC used during the tests.
37: */
38: String DB_NAME = "jdbc_1";
39:
40: /**
41: * Name of the table inserted in the JDBC.
42: */
43: String TABLE_NAME = "TESTCMT";
44:
45: /**
46: * Verifies if the deployment descriptor overrides the default transaction
47: * attribute value. Also, verifies if the transaction attribute type is really mandatory.
48: * @throws Exception if an error occurs.
49: */
50: void testMandatory() throws Exception;
51:
52: /**
53: * Verifies if the deployment descriptor overrides the transaction
54: * attribute mandatory. Also, verifies if the transaction attribute type is really required.
55: * @throws Exception if an error occurs.
56: */
57: void testRequired() throws Exception;
58:
59: /**
60: * Verifies if the deployment descriptor overrides the transaction
61: * attribute mandatory. Also, verifies if the transaction attribute type is really requireds new.
62: * @throws Exception if an error occurs.
63: */
64: void testRequiresNew() throws Exception;
65:
66: /**
67: * Verifies if the deployment descriptor overrides the transaction
68: * attribute mandatory. Also, verifies if the transaction attribute type is really supports.
69: * @throws Exception if an error occurs.
70: */
71: void testSupports() throws Exception;
72:
73: /**
74: * Verifies if the deployment descriptor overrides the transaction
75: * attribute mandatory. Also, verifies if the transaction attribute type is really not supported.
76: * @throws Exception if an error occurs.
77: */
78: void testNotSupported() throws Exception;
79:
80: /**
81: * Verifies if the deployment descriptor overrides the transaction
82: * attribute mandatory. Also, verifies if the transaction attribute type is really never.
83: * @throws Exception if an error occurs.
84: */
85: void testNever() throws Exception;
86:
87: }
|