001    /*
002     * Copyright 2001,2004 The Apache Software Foundation.
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    package org.apache.commons.scaffold.lang;
018    
019    /**
020     * Statics for use in test classes.
021     */
022    public class TestData  {
023    
024        // ------------------------------------------------------------- Integers
025        
026        /**
027         * Integers for fields with a count, 0..2.
028         */
029        public final static Integer[] INTEGER_COUNT = {
030                new Integer(123),
031                new Integer(456),
032                new Integer(789)
033            };
034        
035        /**
036         * Integers for fields with an id, 0..2.
037         */
038        public final static Integer[] INTEGER_ID = {
039                new Integer(1),
040                new Integer(2),
041                new Integer(3)
042            };
043        
044        // -------------------------------------------------------------- Strings
045        
046        /**
047         * EmailAddress Format.
048         */
049        public final static String[] EMAIL_ADDRESS = {
050                new String("aaaaa@aaaaa.com"),
051                new String("bbbbb@bbbbb.org"),
052                new String("ccccc@ccccc.net")
053            };
054        
055        /**
056         * Short, 5-character strings, 0..2.
057         */
058        public final static String[] STRING_5 = {
059                new String("aaaaa"),
060                new String("bbbbb"),
061                new String("ccccc")
062            };
063        
064        /**
065         * Medium, 10-character strings, 0..2.
066         */
067        public final static String[] STRING_10 = {
068                new String("aaaaaaaaaa"),
069                new String("bbbbbbbbbb"),
070                new String("cccccccccc")
071            };
072        
073        /**
074         * Long, 20-character strings, 0..2.
075         */
076        public final static String[] STRING_20 = {
077                new String("aaaaaaaaaaaaaaaaaaaa"),
078                new String("bbbbbbbbbbbbbbbbbbbb"),
079                new String("cccccccccccccccccccc")
080            };
081        
082        // ---------------------------------------------------------------- Dates
083        
084        /**
085         * Date type
086         */
087        public final static String[] DATE = {
088                new String("2002-01-31"),
089                new String("2002-02-28"),
090                new String("2002-03-31")
091            };
092    
093    } // end TestData