KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > common > ejbs > stateless > containermanaged > basic > ItfSessionObjectIdentity


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: ItfSessionObjectIdentity.java 878 2006-07-17 09:14:42Z pinheirg $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.basic;
27
28 /**
29  * Verifies the identity test for stateful and stateless beans.
30  * @author Gisele Pinheiro Souza
31  * @author Eduardo Studzinski Estima de Castro
32  *
33  */

34 public interface ItfSessionObjectIdentity {
35
36     /**
37      * Verifies if the method equals of a stateless bean returns true when the
38      * bean is compared with itself. Example bean1.equals(bean1). The beans in
39      * this test were injected by annotation.
40      */

41     void testSLSameInstanceIdentityInjected();
42
43     /**
44      * Verifies if the method equals of a stateless bean returns true when the
45      * bean is compared with other bean that has the same name. Example
46      * bean1.equals(bean2).The beans in this test were injected by annotation.
47      */

48     void testSLDifferentInstanceIdentityInjected();
49
50     /**
51      * Verifies if the method equals of a stateful bean returns true when the
52      * bean is compared with itself. Example bean1.equals(bean1). The beans in
53      * this test were injected by annotation.
54      */

55     void testSFSameInstanceIdentityInjected();
56
57     /**
58      * Verifies if the method equals of a stateful bean returns false when the
59      * bean is compared with other bean that has the same name. Example bean1.equals(bean2). The beans in
60      * this test were injected by annotation.
61      */

62     void testSFDifferentInstanceIdentityInjected();
63
64     /**
65      * Verifies if the method equals of a stateless bean returns true when the
66      * bean is compared with itself. Example bean1.equals(bean1). The beans in
67      * this test were goten by a lookup.
68      * @throws Exception if a lookup error occurs.
69      */

70     void testSLSameInstanceIdentityLookup() throws Exception JavaDoc;
71
72     /**
73      * Verifies if the method equals of a stateless bean returns true when the
74      * bean is compared with other bean that has the same name. Example bean1.equals(bean2). The beans in
75      * this test were goten by a lookup.
76      * @throws Exception if a lookup error occurs.
77      */

78     void testSLDifferentInstanceIdentityLookup() throws Exception JavaDoc;
79
80     /**
81      * Verifies if the method equals of a stateful bean returns true when the
82      * bean is compared with itself. Example bean1.equals(bean1). The beans in
83      * this test were goten by a lookup.
84      * @throws Exception if a lookup error occurs.
85      */

86     void testSFSameInstanceIdentityLookup() throws Exception JavaDoc;
87
88     /**
89      * Verifies if the method equals of a stateful bean returns false when the
90      * bean is compared with other bean that has the same name. Example bean1.equals(bean2). The beans in
91      * this test were goten by a lookup.
92      * @throws Exception if a lookup error occurs.
93      */

94     void testSFDifferentInstanceIdentityLookup() throws Exception JavaDoc;
95
96 }
97
Popular Tags