diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/cdo/tests/AllSuites.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/cdo/tests/AllSuites.java | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/cdo/tests/AllSuites.java b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/cdo/tests/AllSuites.java new file mode 100644 index 0000000000..739c229bc5 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests/src/org/eclipse/cdo/tests/AllSuites.java @@ -0,0 +1,61 @@ +/** + * <copyright> + * + * Copyright (c) 2006 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM - Initial API and implementation + * + * </copyright> + * + * $Id: AllSuites.java,v 1.1 2006-05-29 21:09:30 nickb Exp $ + */ + +package org.eclipse.emf.cdo.tests; + + +import junit.framework.Test; +import junit.framework.TestSuite; + +public class AllSuites extends TestSuite +{ + private static Test[] suites = new Test []{ + // list all test suites here + org.eclipse.emf.cdo.tests.AllTests.suite() + }; + + public static Test suite() + { + return new AllSuites("cdo Build JUnit Test Suite"); + } + + public AllSuites() + { + super(); + populateSuite(); + } + + public AllSuites(Class theClass) + { + super(theClass); + populateSuite(); + } + + public AllSuites(String name) + { + super(name); + populateSuite(); + } + + protected void populateSuite() + { + for (int i = 0; i < suites.length; i++) + { + addTest(suites[i]); + } + } +}
\ No newline at end of file |