View Javadoc

1   /*
2    * EL4J, the Extension Library for the J2EE, adds incremental enhancements to
3    * the spring framework, http://el4j.sf.net
4    * Copyright (C) 2006 by ELCA Informatique SA, Av. de la Harpe 22-24,
5    * 1000 Lausanne, Switzerland, http://www.elca.ch
6    *
7    * EL4J is published under the GNU Lesser General Public License (LGPL)
8    * Version 2.1. See http://www.gnu.org/licenses/
9    *
10   * This program is distributed in the hope that it will be useful,
11   * but WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13   * GNU Lesser General Public License for more details.
14   *
15   * For alternative licensing, please contact info@elca.ch
16   */
17  package ch.elca.el4j.tests.core.implicitcontextpassing;
18  
19  
20  /**
21   * This interface provides common data of ImplicitContextPasserImplA and
22   * ImplicitContextPasserImplA.
23   *
24   * @svnLink $Revision: 3878 $;$Date: 2009-08-04 15:06:35 +0200 (Di, 04. Aug 2009) $;$Author: swismer $;$URL: https://el4j.svn.sourceforge.net/svnroot/el4j/branches/el4j_3_1/el4j/framework/tests/core/core_implicit_context_passing_test/src/test/java/ch/elca/el4j/tests/core/implicitcontextpassing/ImplicitContextPassTester.java $
25   *
26   * @author David Stefan (DST)
27   */
28  
29  public interface ImplicitContextPassTester {
30  
31  	/**
32  	 * Reset m_testData and m_receivedData, i.e. set them null
33  	 */
34  	public static final int RESET = 0;
35  	/**
36  	 * Tests passing of null value.
37  	 */
38  	public static final int NULL_TEST = 1;
39  	/**
40  	 * Tests passing of a test string.
41  	 */
42  	public static final int STRING_TEST = 2;
43  	/**
44  	 * Tests passing of smallest integer.
45  	 */
46  	public static final int INT_TEST = 3;
47  	/**
48  	 * Tests passing of greatest float.
49  	 */
50  	public static final int FLOAT_TEST = 4;
51  	/**
52  	 * Tests passing of negative infinity.
53  	 */
54  	public static final int DOUBLE_TEST = 5;
55  	/**
56  	 * Tests passing of a simple lists with two string elements.
57  	 */
58  	public static final int LIST_TEST = 6;
59  	/**
60  	 * Tests passing of a empty list.
61  	 */
62  	public static final int NULL_LIST_TEST = 7;
63  
64  	/**
65  	 * Set which data to use.
66  	 *
67  	 * @param option
68  	 *            Kind of data to use
69  	 */
70  	public abstract void setDataToUse(int option);
71  	
72  	/**
73  	 * @return Returns the receivedData.
74  	 */
75  	public Object getReceivedData();
76  
77  	/**
78  	 * @return Returns the testData.
79  	 */
80  	public Object getTestData();
81  }