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:
@@ -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() {
|
public void setUp() {
|
||||||
// save state before test starts so we can restore it when test ends
|
// save state before test starts so we can restore it when test ends
|
||||||
origContextClassLoader = Thread.currentThread().getContextClassLoader();
|
origContextClassLoader = Thread.currentThread().getContextClassLoader();
|
||||||
|
|||||||
@@ -18,22 +18,9 @@
|
|||||||
package org.apache.commons.logging;
|
package org.apache.commons.logging;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class LogTestCase extends AbstractLogTest
|
public class LogTestCase extends AbstractLogTest
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
public Log getLogObject()
|
public Log getLogObject()
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -42,9 +29,4 @@ public class LogTestCase extends AbstractLogTest
|
|||||||
return LogFactory.getLog(this.getClass().getName());
|
return LogFactory.getLog(this.getClass().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args)
|
|
||||||
{
|
|
||||||
String[] testCaseName = { LogTestCase.class.getName() };
|
|
||||||
junit.textui.TestRunner.main(testCaseName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,16 +26,6 @@ import junit.framework.TestCase;
|
|||||||
*/
|
*/
|
||||||
public class NullClassLoaderTestCase extends 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 ---------------------------------
|
//---------------------- unit tests ---------------------------------
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -25,9 +25,4 @@ public class SimpleLogTestCase extends AbstractLogTest
|
|||||||
{
|
{
|
||||||
return new SimpleLog(this.getClass().getName());
|
return new SimpleLog(this.getClass().getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
String[] testCaseName = { SimpleLogTestCase.class.getName() };
|
|
||||||
junit.textui.TestRunner.main(testCaseName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,11 +30,6 @@ import junit.framework.TestSuite;
|
|||||||
*/
|
*/
|
||||||
public class AvalonLoggerTestCase extends AbstractLogTest {
|
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() {
|
public static Test suite() {
|
||||||
TestSuite suite = new TestSuite();
|
TestSuite suite = new TestSuite();
|
||||||
suite.addTestSuite(AvalonLoggerTestCase.class);
|
suite.addTestSuite(AvalonLoggerTestCase.class);
|
||||||
|
|||||||
Reference in New Issue
Block a user