KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > easybeans > tests > environment > reference > simpleentry > TestSimpleEnvironmentEntryInheritance


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: TestSimpleEnvironmentEntryInheritance.java 978 2006-07-28 13:19:14Z studzine $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.easybeans.tests.environment.reference.simpleentry;
26
27 import static org.objectweb.easybeans.tests.common.helper.EJBHelper.getBeanRemoteInstance;
28
29 import org.objectweb.easybeans.tests.common.ejbs.base.ItfSimpleEnvEntry;
30 import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.simpleentry.SLSBSimpleEnvEntryInheritance;
31 import org.testng.annotations.BeforeMethod;
32 import org.testng.annotations.Test;
33
34 /**
35  * Verifies if the simple environment entries injection is following the JSR 220.
36  * The items covered in this test are: 16.4
37  * @reference JSR 220-PROPOSED FINAL
38  * @requirement Application Server must be running; the bean
39  * org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.simpleentry.*
40  * must be deployed. (Ant task: install.jar.tests.simple.environment.session)
41  * @setup gets the reference of the bean
42  * @author Eduardo Studzinski Estima de Castro
43  * @author Gisele Pinheiro Souza
44  */

45 public class TestSimpleEnvironmentEntryInheritance {
46     /**
47      * Bean used in tests.
48      */

49     private ItfSimpleEnvEntry bean;
50
51     /**
52      * Gets bean instances used in the tests.
53      * @throws Exception if there is a problem with the bean initialization.
54      */

55     @BeforeMethod
56     public void startUp() throws Exception JavaDoc {
57         bean = getBeanRemoteInstance(SLSBSimpleEnvEntryInheritance.class, ItfSimpleEnvEntry.class);
58     }
59
60     /**
61      * Tests if a string value was correctly injected.
62      * @input -
63      * @output -
64      */

65     @Test
66     public void testString00() {
67         bean.checkString00();
68     }
69
70     /**
71      * Tests if a character value was correctly injected.
72      * @input -
73      * @output -
74      */

75     @Test
76     public void testCharacter00() {
77         bean.checkCharacter00();
78     }
79
80     /**
81      * Tests if an integer value was correctly injected.
82      * @input -
83      * @output -
84      */

85     @Test
86     public void testInteger00() {
87         bean.checkInteger00();
88     }
89
90     /**
91      * Tests if a boolean value was correctly injected.
92      * @input -
93      * @output -
94      */

95     @Test
96     public void testBoolean00() {
97         bean.checkBoolean00();
98     }
99
100     /**
101      * Tests if a double value was correctly injected.
102      * @input -
103      * @output -
104      */

105     @Test
106     public void testDouble00() {
107         bean.checkDouble00();
108     }
109
110     /**
111      * Tests if a byte value was correctly injected.
112      * @input -
113      * @output -
114      */

115     @Test
116     public void testByte00() {
117         bean.checkByte00();
118     }
119
120     /**
121      * Tests if a short value was correctly injected.
122      * @input -
123      * @output -
124      */

125     @Test
126     public void testShort00() {
127         bean.checkByte00();
128     }
129
130     /**
131      * Tests if a byte value was correctly injected.
132      * @input -
133      * @output -
134      */

135     @Test
136     public void testLong00() {
137         bean.checkLong00();
138     }
139
140     /**
141      * Tests if a float value was correctly injected.
142      * @input -
143      * @output -
144      */

145     @Test
146     public void testFloat00() {
147         bean.checkFloat00();
148     }
149 }
150
Popular Tags