1
0

Test cases don't need main() methods

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1362969 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley
2012-07-18 14:40:37 +00:00
parent b16794f11a
commit 8316eb1fa1
5 changed files with 0 additions and 44 deletions

View File

@@ -211,12 +211,6 @@ public class LoadTestCase extends TestCase{
}
public static void main(String[] args){
String[] testCaseName = { LoadTestCase.class.getName() };
junit.textui.TestRunner.main(testCaseName);
}
public void setUp() {
// save state before test starts so we can restore it when test ends
origContextClassLoader = Thread.currentThread().getContextClassLoader();

View File

@@ -18,22 +18,9 @@
package org.apache.commons.logging;
/**
*
*
*
*
*
*
*/
public class LogTestCase extends AbstractLogTest
{
/**
*
*
*
*/
public Log getLogObject()
{
/**
@@ -42,9 +29,4 @@ public class LogTestCase extends AbstractLogTest
return LogFactory.getLog(this.getClass().getName());
}
public static void main(String[] args)
{
String[] testCaseName = { LogTestCase.class.getName() };
junit.textui.TestRunner.main(testCaseName);
}
}

View File

@@ -26,16 +26,6 @@ import junit.framework.TestCase;
*/
public class NullClassLoaderTestCase extends TestCase {
//---------------------- Main ---------------------------------
/**
* Main method so this test case can be run direct from the command line.
*/
public static void main(String[] args){
String[] testCaseName = { NullClassLoaderTestCase.class.getName() };
junit.textui.TestRunner.main(testCaseName);
}
//---------------------- unit tests ---------------------------------
/**

View File

@@ -25,9 +25,4 @@ public class SimpleLogTestCase extends AbstractLogTest
{
return new SimpleLog(this.getClass().getName());
}
public static void main(String[] args) {
String[] testCaseName = { SimpleLogTestCase.class.getName() };
junit.textui.TestRunner.main(testCaseName);
}
}

View File

@@ -30,11 +30,6 @@ import junit.framework.TestSuite;
*/
public class AvalonLoggerTestCase extends AbstractLogTest {
public static void main(String[] args) {
String[] testCaseName = { AvalonLoggerTestCase.class.getName() };
junit.textui.TestRunner.main(testCaseName);
}
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTestSuite(AvalonLoggerTestCase.class);