Show AllJUnitTests.java syntax highlighted
/*
* Copyright (c) 2005
* Helsinki Institute of Physics
* see LICENSE file for details
*
* AllJUniteTests.java
* Created on 19-May-2005
*/
package fi.hip.gb.test;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import fi.hip.gb.test.module.ExampleTest;
/**
* Runs all tests of the module.
*
* @author Juho Karppinen
* @version $Id: AllJUnitTests.java 292 2005-05-24 16:26:58Z jkarppin $
*/
public class AllJUnitTests extends TestCase {
public AllJUnitTests(String name) {
super(name);
}
/**
* Build the test suite
*/
public static Test suite() {
TestSuite suite = new TestSuite();
// Add the test class for all the classes
suite.addTest(ExampleTest.suite());
return suite;
}
public static void main(String args[]) {
junit.textui.TestRunner.run(suite());
}
}
See more files for this project here