/*
* Danet GmbH
* Beratung und Software-Entwicklung
* Gesch�ftstelle AN
*
* $Id: Log4j.java 2548 2007-10-22 14:00:52Z $
*
* $Log$
* Revision 1.6 2003/10/21 21:00:44 lipp
* Moved EJBClientTest to new junit sub-package.
*
* Revision 1.5 2003/08/27 12:29:42 lipp
* Added WLS support.
*
* Revision 1.4 2003/04/26 16:46:55 lipp
* Made unittests and systemtests coexist in eclipse.
*
* Revision 1.3 2003/04/16 19:25:04 lipp
* Adapted to jdk 1.4
*
* Revision 1.2 2003/03/31 16:50:29 huaiyang
* Logging using common-logging.
*
* Revision 1.1 2002/02/03 21:41:42 lipp
* Cleaned up unittests.
*
*/
package util;
import javax.security.auth.login.LoginException;
import de.danet.an.util.junit.EJBClientTest;
import common.UTLoginContext;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Zusammenstellung aller RasObjectTests.
*/
public class Log4j extends TestCase {
private static UTLoginContext plc = null;
static {
try {
plc = new UTLoginContext();
plc.login();
} catch (LoginException e) {
throw new IllegalStateException (e.getMessage ());
}
}
/**
* Konstruktor zum Erzeugen eines TestCase
*/
public Log4j(String name) {
super (name);
}
/**
* Stellt diese TestSuite zusammen.
*/
public static Test suite() {
TestSuite suite = new TestSuite();
suite.addTest(new Log4j("getEJBLogger"));
return new EJBClientTest (plc, suite);
}
/**
* Try to get a EJBLogger.
*/
public void getEJBLogger() throws Exception {
org.apache.commons.logging.Log logger
= org.apache.commons.logging.LogFactory.getLog
(Log4j.class);
logger.info ("Logging available.");
}
}