001: /*
002: * Copyright 2005-2006 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
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: package org.kuali.module.gl;
017:
018: import junit.framework.Test;
019: import junit.framework.TestSuite;
020:
021: import org.kuali.module.gl.batch.BalanceForwardStepTest;
022: import org.kuali.module.gl.batch.CollectorStepTest;
023: import org.kuali.module.gl.batch.FileEnterpriseFeederTest;
024: import org.kuali.module.gl.batch.ForwardEncumbranceTest;
025: import org.kuali.module.gl.batch.PurgeTest;
026: import org.kuali.module.gl.bo.OriginEntryTest;
027: import org.kuali.module.gl.dao.ojb.BalanceTestDaoOjb;
028: import org.kuali.module.gl.dao.ojb.TestUnitTestSqlDao;
029: import org.kuali.module.gl.dao.ojb.TestUniversityDateDao;
030: import org.kuali.module.gl.service.CollectorServiceTest;
031: import org.kuali.module.gl.service.GeneralLedgerPendingEntryServiceTest;
032: import org.kuali.module.gl.service.NightlyOutServiceTest;
033: import org.kuali.module.gl.service.PosterServiceTest;
034: import org.kuali.module.gl.service.ReportServiceTest;
035: import org.kuali.module.gl.service.RunDateServiceTest;
036: import org.kuali.module.gl.service.ScrubberFlexibleOffsetTest;
037: import org.kuali.module.gl.service.ScrubberServiceTest;
038: import org.kuali.module.gl.service.SufficientFundsRebuilderServiceTest;
039: import org.kuali.module.gl.service.SufficientFundsServiceTest;
040: import org.kuali.module.gl.service.impl.orgreversion.OrganizationReversionCategoryTest;
041: import org.kuali.module.gl.service.impl.orgreversion.OrganizationReversionLogicTest;
042: import org.kuali.module.gl.util.OJBUtilityTest;
043: import org.kuali.module.gl.web.lookupable.AccountBalanceLookupableHelperServiceTest;
044: import org.kuali.module.gl.web.lookupable.BalanceLookupableHelperServiceTest;
045: import org.kuali.module.gl.web.lookupable.EntryLookupableHelperServiceTest;
046: import org.kuali.module.gl.web.lookupable.PendingLedgerServiceHelperServiceTest;
047:
048: /**
049: * Runs all the tests in the GL test suite.
050: */
051: public class AllTests {
052:
053: /**
054: * Constructs a AllTests instance
055: */
056: public AllTests() {
057: super ();
058: }
059:
060: /**
061: * Returns a suite of all the tests in GL...except, of course, for those tests that were never
062: * added to this class.
063: * @return a Test suite with most all GL tests
064: */
065: public static Test suite() {
066: TestSuite suite = new TestSuite();
067:
068: // org.kuali.module.gl
069: suite.addTestSuite(GLConstantsTest.class);
070:
071: // org.kuali.module.gl.batch
072: suite.addTestSuite(BalanceForwardStepTest.class);
073: suite.addTestSuite(CollectorStepTest.class);
074: suite.addTestSuite(FileEnterpriseFeederTest.class);
075: suite.addTestSuite(ForwardEncumbranceTest.class);
076: suite.addTestSuite(PurgeTest.class);
077:
078: // org.kuali.module.gl.bo
079: suite.addTestSuite(OriginEntryTest.class);
080:
081: // org.kuali.module.gl.dao.ojb
082: suite.addTestSuite(TestUniversityDateDao.class);
083: suite.addTestSuite(TestUnitTestSqlDao.class);
084:
085: // org.kuali.module.gl.service
086: suite.addTestSuite(CollectorServiceTest.class);
087: suite.addTestSuite(GeneralLedgerPendingEntryServiceTest.class);
088: suite.addTestSuite(NightlyOutServiceTest.class);
089: suite.addTestSuite(PosterServiceTest.class);
090: suite.addTestSuite(ReportServiceTest.class);
091: suite.addTestSuite(RunDateServiceTest.class);
092: suite.addTestSuite(ScrubberFlexibleOffsetTest.class);
093: suite.addTestSuite(ScrubberServiceTest.class);
094: suite.addTestSuite(SufficientFundsRebuilderServiceTest.class);
095: suite.addTestSuite(SufficientFundsServiceTest.class);
096:
097: // org.kuali.module.gl.service.impl.orgreversion
098: suite.addTestSuite(OrganizationReversionCategoryTest.class);
099: suite.addTestSuite(OrganizationReversionLogicTest.class);
100:
101: // org.kuali.module.gl.util
102: suite.addTestSuite(OJBUtilityTest.class);
103:
104: // org.kuali.module.gl.web.lookupable
105: suite
106: .addTestSuite(AccountBalanceLookupableHelperServiceTest.class);
107: suite.addTestSuite(BalanceLookupableHelperServiceTest.class);
108: suite.addTestSuite(EntryLookupableHelperServiceTest.class);
109: suite.addTestSuite(PendingLedgerServiceHelperServiceTest.class);
110:
111: return suite;
112: }
113:
114: /**
115: * Runs all the tests in the all test test suite
116: *
117: * @param args command line arguments
118: */
119: public static void main(String[] args) {
120: junit.textui.TestRunner.run(suite());
121: }
122: }
|