View Javadoc
1   /*
2    * The Kuali Financial System, a comprehensive financial management system for higher education.
3    * 
4    * Copyright 2005-2014 The Kuali Foundation
5    * 
6    * This program is free software: you can redistribute it and/or modify
7    * it under the terms of the GNU Affero General Public License as
8    * published by the Free Software Foundation, either version 3 of the
9    * License, or (at your option) any later version.
10   * 
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Affero General Public License for more details.
15   * 
16   * You should have received a copy of the GNU Affero General Public License
17   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18   */
19  package org.kuali.kfs.gl;
20  
21  import junit.framework.Test;
22  import junit.framework.TestSuite;
23  
24  import org.kuali.kfs.gl.batch.BalanceForwardStepTest;
25  import org.kuali.kfs.gl.batch.CollectorStepTest;
26  import org.kuali.kfs.gl.batch.ForwardEncumbranceTest;
27  import org.kuali.kfs.gl.batch.PurgeTest;
28  import org.kuali.kfs.gl.batch.YearEndFlexibleOffsetTest;
29  import org.kuali.kfs.gl.batch.service.CollectorServiceTest;
30  import org.kuali.kfs.gl.batch.service.OrganizationReversionCategoryTest;
31  import org.kuali.kfs.gl.batch.service.PosterServiceTest;
32  import org.kuali.kfs.gl.batch.service.RunDateServiceTest;
33  import org.kuali.kfs.gl.batch.service.SufficientFundsAccountUpdateServiceTest;
34  import org.kuali.kfs.gl.businessobject.OriginEntryTest;
35  import org.kuali.kfs.gl.businessobject.lookup.AccountBalanceLookupableHelperServiceTest;
36  import org.kuali.kfs.gl.businessobject.lookup.BalanceLookupableHelperServiceTest;
37  import org.kuali.kfs.gl.businessobject.lookup.EntryLookupableHelperServiceTest;
38  import org.kuali.kfs.gl.service.NightlyOutServiceTest;
39  import org.kuali.kfs.gl.service.OrganizationReversionLogicTest;
40  import org.kuali.kfs.gl.service.ScrubberFlexibleOffsetTest;
41  import org.kuali.kfs.gl.service.ScrubberServiceTest;
42  import org.kuali.kfs.gl.service.SufficientFundsServiceTest;
43  import org.kuali.kfs.sys.service.GeneralLedgerPendingEntryServiceTest;
44  import org.kuali.kfs.sys.service.PendingLedgerServiceHelperServiceTest;
45  
46  /**
47   * Runs all the tests in the GL test suite.
48   */
49  public class AllTests {
50  
51      /**
52       * Constructs a AllTests instance
53       */
54      public AllTests() {
55          super();
56      }
57  
58      /**
59       * Returns a suite of all the tests in GL...except, of course, for those tests that were never
60       * added to this class.
61       * @return a Test suite with most all GL tests
62       */
63      public static Test suite() {
64          TestSuite suite = new TestSuite();
65  
66          // org.kuali.kfs.gl
67          suite.addTestSuite(GLConstantsTest.class);
68  
69          // org.kuali.kfs.gl.batch
70          suite.addTestSuite(BalanceForwardStepTest.class);
71          suite.addTestSuite(CollectorStepTest.class);
72          suite.addTestSuite(ForwardEncumbranceTest.class);
73          suite.addTestSuite(PurgeTest.class);
74          suite.addTestSuite(YearEndFlexibleOffsetTest.class);
75  
76          // org.kuali.kfs.gl.businessobject
77          suite.addTestSuite(OriginEntryTest.class);
78  
79          // org.kuali.module.gl.service
80          suite.addTestSuite(CollectorServiceTest.class);
81          suite.addTestSuite(GeneralLedgerPendingEntryServiceTest.class);
82          suite.addTestSuite(NightlyOutServiceTest.class);
83          suite.addTestSuite(PosterServiceTest.class);
84          suite.addTestSuite(RunDateServiceTest.class);
85          suite.addTestSuite(ScrubberFlexibleOffsetTest.class);
86          suite.addTestSuite(ScrubberServiceTest.class);
87          suite.addTestSuite(SufficientFundsAccountUpdateServiceTest.class);
88          suite.addTestSuite(SufficientFundsServiceTest.class);
89  
90          // org.kuali.module.gl.service.impl.orgreversion
91          suite.addTestSuite(OrganizationReversionCategoryTest.class);
92          suite.addTestSuite(OrganizationReversionLogicTest.class);
93  
94          // org.kuali.module.gl.util
95          suite.addTestSuite(OJBUtilityTest.class);
96  
97          // org.kuali.kfs.gl.businessobject.lookup
98          suite.addTestSuite(AccountBalanceLookupableHelperServiceTest.class);
99          suite.addTestSuite(BalanceLookupableHelperServiceTest.class);
100         suite.addTestSuite(EntryLookupableHelperServiceTest.class);
101         suite.addTestSuite(PendingLedgerServiceHelperServiceTest.class);
102 
103         return suite;
104     }
105 
106     /**
107      * Runs all the tests in the all test test suite
108      * 
109      * @param args command line arguments
110      */
111     public static void main(String[] args) {
112         junit.textui.TestRunner.run(suite());
113     }
114 }