View Javadoc

1   /*
2    * Copyright 2001,2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.apache.commons.scaffold.lang;
18  
19  /**
20   * Statics for use in test classes.
21   */
22  public class TestData  {
23  
24      // ------------------------------------------------------------- Integers
25      
26      /**
27       * Integers for fields with a count, 0..2.
28       */
29      public final static Integer[] INTEGER_COUNT = {
30              new Integer(123),
31              new Integer(456),
32              new Integer(789)
33          };
34      
35      /**
36       * Integers for fields with an id, 0..2.
37       */
38      public final static Integer[] INTEGER_ID = {
39              new Integer(1),
40              new Integer(2),
41              new Integer(3)
42          };
43      
44      // -------------------------------------------------------------- Strings
45      
46      /**
47       * EmailAddress Format.
48       */
49      public final static String[] EMAIL_ADDRESS = {
50              new String("aaaaa@aaaaa.com"),
51              new String("bbbbb@bbbbb.org"),
52              new String("ccccc@ccccc.net")
53          };
54      
55      /**
56       * Short, 5-character strings, 0..2.
57       */
58      public final static String[] STRING_5 = {
59              new String("aaaaa"),
60              new String("bbbbb"),
61              new String("ccccc")
62          };
63      
64      /**
65       * Medium, 10-character strings, 0..2.
66       */
67      public final static String[] STRING_10 = {
68              new String("aaaaaaaaaa"),
69              new String("bbbbbbbbbb"),
70              new String("cccccccccc")
71          };
72      
73      /**
74       * Long, 20-character strings, 0..2.
75       */
76      public final static String[] STRING_20 = {
77              new String("aaaaaaaaaaaaaaaaaaaa"),
78              new String("bbbbbbbbbbbbbbbbbbbb"),
79              new String("cccccccccccccccccccc")
80          };
81      
82      // ---------------------------------------------------------------- Dates
83      
84      /**
85       * Date type
86       */
87      public final static String[] DATE = {
88              new String("2002-01-31"),
89              new String("2002-02-28"),
90              new String("2002-03-31")
91          };
92  
93  } // end TestData