Replace tab characters with spaces. No other changes.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@581090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -33,64 +33,64 @@ public abstract class AbstractLogTest extends TestCase {
|
||||
|
||||
public abstract Log getLogObject();
|
||||
|
||||
public void testLoggingWithNullParameters()
|
||||
{
|
||||
Log log = this.getLogObject();
|
||||
|
||||
assertNotNull(log);
|
||||
|
||||
public void testLoggingWithNullParameters()
|
||||
{
|
||||
Log log = this.getLogObject();
|
||||
|
||||
log.debug(null);
|
||||
|
||||
log.debug(null, null);
|
||||
|
||||
log.debug(log.getClass().getName() + ": debug statement");
|
||||
|
||||
log.debug(log.getClass().getName() + ": debug statement w/ null exception", new RuntimeException());
|
||||
|
||||
assertNotNull(log);
|
||||
|
||||
log.error(null);
|
||||
|
||||
log.error(null, null);
|
||||
|
||||
log.error(log.getClass().getName() + ": error statement");
|
||||
|
||||
log.error(log.getClass().getName() + ": error statement w/ null exception", new RuntimeException());
|
||||
|
||||
|
||||
log.fatal(null);
|
||||
|
||||
log.fatal(null, null);
|
||||
|
||||
log.fatal(log.getClass().getName() + ": fatal statement");
|
||||
|
||||
log.fatal(log.getClass().getName() + ": fatal statement w/ null exception", new RuntimeException());
|
||||
|
||||
log.debug(null);
|
||||
|
||||
log.info(null);
|
||||
|
||||
log.info(null, null);
|
||||
|
||||
log.info(log.getClass().getName() + ": info statement");
|
||||
|
||||
log.info(log.getClass().getName() + ": info statement w/ null exception", new RuntimeException());
|
||||
|
||||
log.debug(null, null);
|
||||
|
||||
log.trace(null);
|
||||
|
||||
log.trace(null, null);
|
||||
|
||||
log.trace(log.getClass().getName() + ": trace statement");
|
||||
|
||||
log.trace(log.getClass().getName() + ": trace statement w/ null exception", new RuntimeException());
|
||||
|
||||
log.debug(log.getClass().getName() + ": debug statement");
|
||||
|
||||
log.warn(null);
|
||||
|
||||
log.warn(null, null);
|
||||
|
||||
log.warn(log.getClass().getName() + ": warn statement");
|
||||
|
||||
log.warn(log.getClass().getName() + ": warn statement w/ null exception", new RuntimeException());
|
||||
}
|
||||
log.debug(log.getClass().getName() + ": debug statement w/ null exception", new RuntimeException());
|
||||
|
||||
|
||||
log.error(null);
|
||||
|
||||
log.error(null, null);
|
||||
|
||||
log.error(log.getClass().getName() + ": error statement");
|
||||
|
||||
log.error(log.getClass().getName() + ": error statement w/ null exception", new RuntimeException());
|
||||
|
||||
|
||||
log.fatal(null);
|
||||
|
||||
log.fatal(null, null);
|
||||
|
||||
log.fatal(log.getClass().getName() + ": fatal statement");
|
||||
|
||||
log.fatal(log.getClass().getName() + ": fatal statement w/ null exception", new RuntimeException());
|
||||
|
||||
|
||||
log.info(null);
|
||||
|
||||
log.info(null, null);
|
||||
|
||||
log.info(log.getClass().getName() + ": info statement");
|
||||
|
||||
log.info(log.getClass().getName() + ": info statement w/ null exception", new RuntimeException());
|
||||
|
||||
|
||||
log.trace(null);
|
||||
|
||||
log.trace(null, null);
|
||||
|
||||
log.trace(log.getClass().getName() + ": trace statement");
|
||||
|
||||
log.trace(log.getClass().getName() + ": trace statement w/ null exception", new RuntimeException());
|
||||
|
||||
|
||||
log.warn(null);
|
||||
|
||||
log.warn(null, null);
|
||||
|
||||
log.warn(log.getClass().getName() + ": warn statement");
|
||||
|
||||
log.warn(log.getClass().getName() + ": warn statement w/ null exception", new RuntimeException());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,11 +29,11 @@ import org.apache.commons.logging.impl.SimpleLog;
|
||||
*/
|
||||
public class SimpleLogTestCase extends AbstractLogTest
|
||||
{
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
public Log getLogObject()
|
||||
{
|
||||
return (Log) new SimpleLog(this.getClass().getName());
|
||||
@@ -41,6 +41,6 @@ public class SimpleLogTestCase extends AbstractLogTest
|
||||
|
||||
public static void main(String[] args) {
|
||||
String[] testCaseName = { SimpleLogTestCase.class.getName() };
|
||||
junit.textui.TestRunner.main(testCaseName);
|
||||
junit.textui.TestRunner.main(testCaseName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public class AvalonLoggerTestCase extends AbstractLogTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
String[] testCaseName = { AvalonLoggerTestCase.class.getName() };
|
||||
junit.textui.TestRunner.main(testCaseName);
|
||||
junit.textui.TestRunner.main(testCaseName);
|
||||
}
|
||||
|
||||
public static Test suite() {
|
||||
@@ -43,6 +43,6 @@ public class AvalonLoggerTestCase extends AbstractLogTest {
|
||||
|
||||
public Log getLogObject() {
|
||||
Log log = new AvalonLogger(new ConsoleLogger());
|
||||
return log;
|
||||
}
|
||||
return log;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,13 +53,13 @@ public class NoOpLogTestCase extends AbstractLogTest
|
||||
}
|
||||
|
||||
/**
|
||||
* Override the abstract method from the parent class so that the
|
||||
* Override the abstract method from the parent class so that the
|
||||
* inherited tests can access the right Log object type.
|
||||
*/
|
||||
public Log getLogObject()
|
||||
{
|
||||
return (Log) new NoOpLog(this.getClass().getName());
|
||||
}
|
||||
*/
|
||||
public Log getLogObject()
|
||||
{
|
||||
return (Log) new NoOpLog(this.getClass().getName());
|
||||
}
|
||||
|
||||
// Test Serializability of standard instance
|
||||
public void testSerializable() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user