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: TestSLSessionBeanInterface.java 1970 2007-10-16 11:49:25Z benoitf $
23: * --------------------------------------------------------------------------
24: */package org.ow2.easybeans.tests.sessionbean.stateless.sbinterface;
25:
26: import static org.ow2.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance;
27:
28: import org.ow2.easybeans.tests.common.ejbs.base.ItfCheck01;
29: import org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger.ItfCallbackLoggerAccess;
30: import org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger.SLSBCallbackLoggerAccess;
31: import org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.sbinterface.SLSBSessionBeanInterface00;
32: import org.testng.annotations.BeforeMethod;
33: import org.testng.annotations.Test;
34:
35: /**
36: * Tests beans that implements the SessionBean interface.
37: * @author Eduardo Studzinski Estima de Castro
38: * @author Gisele Pinheiro Souza
39: */
40: public class TestSLSessionBeanInterface {
41:
42: /**
43: * Bean.
44: */
45: private ItfCheck01 bean;
46:
47: /**
48: * Logger bean.
49: */
50: private ItfCallbackLoggerAccess beanLogger;
51:
52: /**
53: * Gets bean instances used in the tests.
54: * @throws Exception if there is a problem with bean initialization.
55: */
56: @BeforeMethod
57: public void startUp() throws Exception {
58: bean = getBeanRemoteInstance(SLSBSessionBeanInterface00.class,
59: ItfCheck01.class);
60: beanLogger = getBeanRemoteInstance(
61: SLSBCallbackLoggerAccess.class,
62: ItfCallbackLoggerAccess.class);
63: beanLogger.deleteAll();
64: }
65:
66: /**
67: * Verifies the setSessionContext.
68: * @input -
69: * @output -
70: * @throws Exception if a problem occurs.
71: */
72: @Test
73: public void verifySessionContext() throws Exception {
74: bean.check();
75: }
76:
77: /**
78: * Verifies the ejbRemove().
79: * @input -
80: * @output -
81: * @throws Exception if a problem occurs.
82: */
83: // @Test
84: public void verifyEjbRemove() throws Exception {
85: // TODO: test
86: }
87: }
|