001: /**
002: * EasyBeans
003: * Copyright (C) 2006 Bull S.A.S.
004: * Contact: easybeans@ow2.org
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation; either
009: * version 2.1 of the License, or any later version.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: *
016: * You should have received a copy of the GNU Lesser General Public
017: * License along with this library; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
019: * USA
020: *
021: * --------------------------------------------------------------------------
022: * $Id: TestSimpleEnvironmentEntryInheritance.java 1970 2007-10-16 11:49:25Z benoitf $
023: * --------------------------------------------------------------------------
024: */package org.ow2.easybeans.tests.environment.reference.simpleentry;
025:
026: import static org.ow2.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance;
027:
028: import org.ow2.easybeans.tests.common.ejbs.base.ItfSimpleEnvEntry;
029: import org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.simpleentry.SLSBSimpleEnvEntryInheritance;
030: import org.testng.annotations.BeforeMethod;
031: import org.testng.annotations.Test;
032:
033: /**
034: * Verifies if the simple environment entries injection is following the JSR 220.
035: * The items covered in this test are: 16.4
036: * @reference JSR 220-PROPOSED FINAL
037: * @requirement Application Server must be running; the bean
038: * org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.simpleentry.*
039: * must be deployed. (Ant task: install.jar.tests.simple.environment.session)
040: * @setup gets the reference of the bean
041: * @author Eduardo Studzinski Estima de Castro
042: * @author Gisele Pinheiro Souza
043: */
044: public class TestSimpleEnvironmentEntryInheritance {
045: /**
046: * Bean used in tests.
047: */
048: private ItfSimpleEnvEntry bean;
049:
050: /**
051: * Gets bean instances used in the tests.
052: * @throws Exception if there is a problem with the bean initialization.
053: */
054: @BeforeMethod
055: public void startUp() throws Exception {
056: bean = getBeanRemoteInstance(
057: SLSBSimpleEnvEntryInheritance.class,
058: ItfSimpleEnvEntry.class);
059: }
060:
061: /**
062: * Tests if a string value was correctly injected.
063: * @input -
064: * @output -
065: */
066: @Test
067: public void testString00() {
068: bean.checkString00();
069: }
070:
071: /**
072: * Tests if a character value was correctly injected.
073: * @input -
074: * @output -
075: */
076: @Test
077: public void testCharacter00() {
078: bean.checkCharacter00();
079: }
080:
081: /**
082: * Tests if an integer value was correctly injected.
083: * @input -
084: * @output -
085: */
086: @Test
087: public void testInteger00() {
088: bean.checkInteger00();
089: }
090:
091: /**
092: * Tests if a boolean value was correctly injected.
093: * @input -
094: * @output -
095: */
096: @Test
097: public void testBoolean00() {
098: bean.checkBoolean00();
099: }
100:
101: /**
102: * Tests if a double value was correctly injected.
103: * @input -
104: * @output -
105: */
106: @Test
107: public void testDouble00() {
108: bean.checkDouble00();
109: }
110:
111: /**
112: * Tests if a byte value was correctly injected.
113: * @input -
114: * @output -
115: */
116: @Test
117: public void testByte00() {
118: bean.checkByte00();
119: }
120:
121: /**
122: * Tests if a short value was correctly injected.
123: * @input -
124: * @output -
125: */
126: @Test
127: public void testShort00() {
128: bean.checkByte00();
129: }
130:
131: /**
132: * Tests if a byte value was correctly injected.
133: * @input -
134: * @output -
135: */
136: @Test
137: public void testLong00() {
138: bean.checkLong00();
139: }
140:
141: /**
142: * Tests if a float value was correctly injected.
143: * @input -
144: * @output -
145: */
146: @Test
147: public void testFloat00() {
148: bean.checkFloat00();
149: }
150: }
|