View Javadoc
1   /******************************************************************************
2    * AllTests.java - Run all of the JUnit tests for BuckoFIBS 
3    * $Id$
4    * 
5    * BuckoFIBS - Backgammon by BuckoSoft
6    * Copyright© 2011 - Dick Balaska - BuckoSoft, Corp.
7    * 
8    * $Log$
9    * Revision 1.11  2011/06/15 04:00:40  dick
10   * TestGameBoard becomes TestGameEventBoard.
11   *
12   * Revision 1.10  2011/06/15 03:48:51  dick
13   * TestGameMove becomes TestGameEventMove.
14   *
15   * Revision 1.9  2011/06/14 23:27:43  dick
16   * Make allTests[] from separate code lines.
17   *
18   * Revision 1.8  2011/06/13 06:05:41  dick
19   * Add TestCookieString.
20   *
21   * Revision 1.7  2011/05/21 16:17:07  dick
22   * TestGameLine becomes TestGameBoard.
23   * TestDocument moves to the document package.
24   *
25   * Revision 1.6  2011/05/14 05:20:11  dick
26   * I needed to deal with some lightweight Boards.
27   * So finally make the primary document Document
28   * and demote just the Board handling to a domain object.
29   *
30   * Revision 1.5  2011/05/11 22:24:41  dick
31   * TestLine becomes TestGameLine.
32   *
33   * Revision 1.4  2011/05/08 21:42:38  dick
34   * Add TestDatabase.
35   *
36   * Revision 1.3  2011/05/07 15:12:39  dick
37   * Add the CookieMonster test.
38   *
39   * Revision 1.2  2011/05/07 06:19:00  dick
40   * Add tests for the rest of the domain package.
41   *
42   * Revision 1.1  2011/05/06 23:47:20  dick
43   * First BuckoFIBS JUnit tests.
44   *
45   */
46  
47  package com.buckosoft.fibs;
48  
49  import junit.framework.Test;
50  import junit.framework.TestSuite;
51  
52  import com.buckosoft.fibs.BuckoFIBS.db.TestDatabaseImpl;
53  import com.buckosoft.fibs.document.TestDocument;
54  import com.buckosoft.fibs.domain.TestBoard;
55  import com.buckosoft.fibs.domain.TestCookieString;
56  import com.buckosoft.fibs.domain.TestFinishedMatch;
57  import com.buckosoft.fibs.domain.TestGroupOfPlayers;
58  import com.buckosoft.fibs.domain.TestPlayer;
59  import com.buckosoft.fibs.domain.TestPlayerGroup;
60  import com.buckosoft.fibs.domain.TestSavedMatch;
61  import com.buckosoft.fibs.domain.config.TestRatingGraphConfig;
62  import com.buckosoft.fibs.domain.gameEvent.TestGameEvent;
63  import com.buckosoft.fibs.domain.gameEvent.TestGameEventBoard;
64  import com.buckosoft.fibs.domain.gameEvent.TestGameEventMove;
65  import com.buckosoft.fibs.net.TestCookieMonster;
66  
67  /** Primary entry point for JUnit tests when running in eclipse.
68   * @author Dick Balaska
69   * @since 2011/05/06
70   * @version $Revision$ <br> $Date$
71   * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/test/java/com/buckosoft/fibs/test/AllTests.java">cvs AllTests.java</a>
72   */
73  public class AllTests {
74  	private static Class<?> allTests[] = {
75  		TestCookieString.class,
76  		TestBoard.class,
77  		TestDocument.class,
78  		TestPlayer.class,
79  		TestGameEventBoard.class,
80  		TestPlayerGroup.class,
81  		TestFinishedMatch.class,
82  		TestSavedMatch.class,
83  		TestGroupOfPlayers.class,
84  		TestRatingGraphConfig.class,
85  		TestCookieMonster.class,
86  		TestDatabaseImpl.class,
87  		TestGameEvent.class,
88  		TestGameEventMove.class,
89  	};
90  	
91  	public static Test suite() {
92  		TestSuite suite = new TestSuite(allTests);
93  		//$JUnit-BEGIN$
94  		//$JUnit-END$
95  		return suite;
96  	}
97  
98  }