1   /*
2    * Copyright 2006 - 2012 Christina Bohk and Roland Ewald
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  package p3j;
17  
18  import junit.framework.Test;
19  import junit.framework.TestSuite;
20  import p3j.database.hibernate.TestHibernateConnection;
21  import p3j.gui.P3J;
22  import p3j.misc.math.TestRandomNumberChecker;
23  import p3j.pppm.readerwriter.database.TestDBReaderWriter;
24  import p3j.simulation.assignments.exhaustive.TestAssignmentAndAssignmentEnumerator;
25  import p3j.simulation.assignments.exhaustive.TestExhaustiveAssignmentGenerator;
26  
27  /**
28   * Creates general test suite for {@link P3J}.
29   * 
30   * @author Christina Bohk
31   * @author Roland Ewald
32   * 
33   */
34  public class AllP3JTests {
35  
36    public static Test suite() {
37      TestSuite suite = new TestSuite("All P3J Tests");
38      suite.addTestSuite(TestHibernateConnection.class);
39      suite.addTestSuite(TestDBReaderWriter.class);
40      suite.addTestSuite(TestRandomNumberChecker.class);
41      suite.addTestSuite(TestExhaustiveAssignmentGenerator.class);
42      suite.addTestSuite(TestAssignmentAndAssignmentEnumerator.class);
43      return suite;
44    }
45  }