KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > junit > internal > Constants


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.junit.internal;
8
9
10 /**
11  * This interface holds all the constants used by the
12  * framework (well sorta). All these constants are global
13  * to the framework and therefore are located here.
14  *
15  * @author Brian Pontarelli
16  * @since 1.0
17  * @version 1.0
18  */

19 public interface Constants
20 {
21     /**
22      * The prefix of the JUnit test methods
23      */

24     String JavaDoc TEST_METHOD_PREFIX = "test";
25
26     /**
27      * The context param name that should be used for storing the Result
28      * if and only if there was an unrecoverable error prior to the test
29      * being run.
30      */

31     String JavaDoc RESULT_PARAM = "_testframework_result";
32
33     /**
34      * The name of the class name parameter in the request
35      */

36     String JavaDoc URL_CLASS_PARAM = "_testframework_class_name";
37
38     /**
39      * The name of the method name parameter in the request
40      */

41     String JavaDoc URL_METHOD_PARAM = "_testframework_method_name";
42
43     /**
44      * The name of the context parameter when adding a spoofed URL to the request
45      */

46     String JavaDoc URL_CONTEXT_PARAM = "_testframework_context";
47
48     /**
49      * The name of the path info parameter when adding a spoofed URL to the request
50      */

51     String JavaDoc URL_PATHINFO_PARAM = "_testframework_pathInfo";
52
53     /**
54      * The name of the protocol parameter when adding a spoofed URL to the request
55      */

56     String JavaDoc URL_PROTOCOL_PARAM = "_testframework_protocol";
57
58     /**
59      * The name of the query string parameter when adding a spoofed URL to the request
60      */

61     String JavaDoc URL_QUERYSTRING_PARAM = "_testframework_querystring";
62
63     /**
64      * The name of the server name parameter when adding a spoofed URL to the request
65      */

66     String JavaDoc URL_SERVERNAME_PARAM = "_testframework_serverName";
67
68     /**
69      * The name of the servlet path parameter when adding a spoofed URL to the request
70      */

71     String JavaDoc URL_SERVLETPATH_PARAM = "_testframework_servletPath";
72
73     /**
74      * The name of the url parameter that will tell the Proxy what type of request is
75      * being submitted (either a test or result request)
76      */

77     String JavaDoc URL_REQUEST_TYPE_PARAM = "_testframework_requestType";
78
79     /**
80      * The name of the request attribute that optionally stores the PageContext
81      * from the jspProxy JSP page
82      */

83     String JavaDoc PAGE_CONTEXT_KEY = "_testframework_pageContext";
84
85
86     /**
87      * One possible value for the URL_REQUEST_TYPE_PARAM url parameter. This one denotes
88      * a test type request
89      */

90     String JavaDoc REQUEST_TYPE_TEST = "test";
91
92     /**
93      * One possible value for the URL_REQUEST_TYPE_PARAM url parameter. This one denotes
94      * a result type request
95      */

96     String JavaDoc REQUEST_TYPE_RESULT = "result";
97 }
98
Popular Tags