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: ItfOverrideTester00.java 1970 2007-10-16 11:49:25Z benoitf $
23: * --------------------------------------------------------------------------
24: */package org.ow2.easybeans.tests.common.ejbs.stateful.containermanaged.xmldescriptor;
25:
26: import javax.naming.NamingException;
27: import javax.transaction.HeuristicMixedException;
28: import javax.transaction.HeuristicRollbackException;
29: import javax.transaction.NotSupportedException;
30: import javax.transaction.RollbackException;
31: import javax.transaction.SystemException;
32:
33: import org.ow2.easybeans.tests.common.exception.TransactionException;
34:
35: /**
36: * Verifies if the deployment descriptor overrides the annotations.
37: * @author Gisele Pinheiro Souza
38: * @author Eduardo Studzinski Estima de Castro
39: *
40: */
41: public interface ItfOverrideTester00 {
42:
43: /**
44: * Verifies if the bean was injected correctly. The local interface is used.
45: */
46: void testLocalInjection();
47:
48: /**
49: * Verifies if the bean was injected correctly. The remote interface is
50: * used.
51: */
52: void testRemoteInjection();
53:
54: /**
55: * Verifies if the bean(with the local interface) can be obtained by the
56: * lookup.
57: * @throws Exception if a lookup error occurs.
58: */
59: void testLookupLocal() throws Exception;
60:
61: /**
62: * Verifies if the bean(with the remote interface) can be obtained by the
63: * lookup.
64: * @throws Exception if a lookup error occurs.
65: */
66: void testLookupRemote() throws Exception;
67:
68: /**
69: * Verifies if the transaction type was overriden by the container. The bean
70: * has the transaction management defined as Container and the xml
71: * descriptor defines the transaction managemente as bean.
72: * @throws NamingException if a lookup error occurs.
73: * @throws SystemException if an unexpected error occurs.
74: * @throws NotSupportedException if the resquest cannot be made.
75: * @throws HeuristicRollbackException if a heuristic decision was made and
76: * some relevant update was rolled back.
77: * @throws RollbackException if the transaction was rolled back instead of
78: * committed.
79: * @throws HeuristicMixedException if a heuristic decision was made and some
80: * relevant update was commited and others rolled back.
81: * @throws TransactionException if a rollback was made.
82: */
83: void testTransactionType() throws IllegalStateException,
84: SecurityException, HeuristicMixedException,
85: HeuristicRollbackException, RollbackException,
86: SystemException, NotSupportedException, NamingException;
87:
88: }
|