001: /*
002: * $Id: TestAll.java,v 1.26 2005/06/18 01:03:44 ahimanikya Exp $
003: * =======================================================================
004: * Copyright (c) 2002-2005 Axion Development Team. All rights reserved.
005: *
006: * Redistribution and use in source and binary forms, with or without
007: * modification, are permitted provided that the following conditions
008: * are met:
009: *
010: * 1. Redistributions of source code must retain the above
011: * copyright notice, this list of conditions and the following
012: * disclaimer.
013: *
014: * 2. Redistributions in binary form must reproduce the above copyright
015: * notice, this list of conditions and the following disclaimer in
016: * the documentation and/or other materials provided with the
017: * distribution.
018: *
019: * 3. The names "Tigris", "Axion", nor the names of its contributors may
020: * not be used to endorse or promote products derived from this
021: * software without specific prior written permission.
022: *
023: * 4. Products derived from this software may not be called "Axion", nor
024: * may "Tigris" or "Axion" appear in their names without specific prior
025: * written permission.
026: *
027: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
028: * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
029: * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
030: * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
031: * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
032: * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
033: * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
034: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
035: * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
036: * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
037: * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
038: * =======================================================================
039: */
040:
041: package org.axiondb.functions;
042:
043: import junit.framework.Test;
044: import junit.framework.TestCase;
045: import junit.framework.TestSuite;
046:
047: /**
048: * Root test suite.
049: *
050: * @version $Revision: 1.26 $ $Date: 2005/06/18 01:03:44 $
051: * @author Chuck Burdick
052: * @author Jonathan Giron
053: */
054: public class TestAll extends TestCase {
055:
056: public TestAll(String testName) {
057: super (testName);
058: }
059:
060: public static void main(String args[]) {
061: String[] testCaseName = { TestAll.class.getName() };
062: junit.textui.TestRunner.main(testCaseName);
063: }
064:
065: public static Test suite() {
066: TestSuite suite = new TestSuite();
067:
068: suite.addTest(TestFunctionIdentifier.suite());
069:
070: suite.addTest(TestAddFunction.suite());
071: suite.addTest(TestSubtractFunction.suite());
072: suite.addTest(TestMultiplyFunction.suite());
073: suite.addTest(TestDivideFunction.suite());
074:
075: suite.addTest(TestLessThanFunction.suite());
076: suite.addTest(TestLessThanOrEqualFunction.suite());
077: suite.addTest(TestEqualFunction.suite());
078: suite.addTest(TestGreaterThanOrEqualFunction.suite());
079: suite.addTest(TestGreaterThanFunction.suite());
080: suite.addTest(TestNotEqualFunction.suite());
081:
082: suite.addTest(TestIsNullFunction.suite());
083: suite.addTest(TestIsNotNullFunction.suite());
084:
085: suite.addTest(TestInFunction.suite());
086: suite.addTest(TestNotInFunction.suite());
087: suite.addTest(TestNotFunction.suite());
088: suite.addTest(TestAndFunction.suite());
089: suite.addTest(TestOrFunction.suite());
090:
091: suite.addTest(TestLikeToRegexpFunction.suite());
092: suite.addTest(TestLowerFunction.suite());
093: suite.addTest(TestUpperFunction.suite());
094: suite.addTest(TestConcatFunction.suite());
095: suite.addTest(TestIfThenFunction.suite());
096: suite.addTest(TestNullIfFunction.suite());
097: suite.addTest(TestNowFunction.suite());
098:
099: suite.addTest(TestAvgFunction.suite());
100: suite.addTest(TestCountFunction.suite());
101: suite.addTest(TestMaxFunction.suite());
102: suite.addTest(TestMinFunction.suite());
103: suite.addTest(TestSumFunction.suite());
104:
105: suite.addTest(TestABSFunction.suite());
106: suite.addTest(TestAsciiFunction.suite());
107: suite.addTest(TestHexFunction.suite());
108: suite.addTest(TestBitAndFunction.suite());
109: suite.addTest(TestBitOrFunction.suite());
110: suite.addTest(TestCoalesceFunction.suite());
111: suite.addTest(TestDifferenceFunction.suite());
112: suite.addTest(TestSoundexFunction.suite());
113: suite.addTest(TestSoundsLikeFunction.suite());
114: suite.addTest(TestInStringFunction.suite());
115: suite.addTest(TestLengthFunction.suite());
116: suite.addTest(TestLog10Function.suite());
117: suite.addTest(TestLPadFunction.suite());
118: suite.addTest(TestLTrimFunction.suite());
119: suite.addTest(TestModFunction.suite());
120: suite.addTest(TestReplaceFunction.suite());
121: suite.addTest(TestRoundFunction.suite());
122: suite.addTest(TestRPadFunction.suite());
123: suite.addTest(TestRTrimFunction.suite());
124: suite.addTest(TestTrimFunction.suite());
125: suite.addTest(TestSignFunction.suite());
126: suite.addTest(TestSpaceFunction.suite());
127: suite.addTest(TestSubstringFunction.suite());
128: suite.addTest(TestTruncateFunction.suite());
129: suite.addTest(TestCastAsFunction.suite());
130:
131: suite.addTest(TestCharToDateFunction.suite());
132: suite.addTest(TestDateAddFunction.suite());
133: suite.addTest(TestDateDiffFunction.suite());
134: suite.addTest(TestDatePartFunction.suite());
135: suite.addTest(TestDateToCharFunction.suite());
136:
137: suite.addTest(TestIsValidDateTimeFunction.suite());
138:
139: suite.addTest(TestBase64DecodeFunction.suite());
140: suite.addTest(TestBase64EncodeFunction.suite());
141: suite.addTest(TestCharFunction.suite());
142: suite.addTest(TestExistsFunction.suite());
143:
144: suite.addTest(TestMatchesFunction.suite());
145:
146: return suite;
147: }
148: }
|