KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > jms > BaseJMSTest


1
2 /*
3  * JBoss, the OpenSource J2EE webOS
4  *
5  * Distributable under LGPL license.
6  * See terms of license at gnu.org.
7  */

8 package org.jboss.test.jms;
9
10 import junit.framework.TestCase;
11
12 import org.jboss.logging.Logger;
13 import org.jboss.logging.XLevel;
14
15 /**
16  * The base jms test
17  *
18  * @author <a HREF="adrian@jboss.org>Adrian Brock</a>
19  * @version $Revision: 1.2 $
20  */

21 public class BaseJMSTest extends TestCase
22 {
23    // Constants -----------------------------------------------------
24

25    // Attributes ----------------------------------------------------
26

27    /** The logger */
28    protected Logger log = Logger.getLogger(getClass());
29
30    // Static --------------------------------------------------------
31

32    // Constructors --------------------------------------------------
33

34    public BaseJMSTest(String JavaDoc name)
35    {
36       super(name);
37       org.apache.log4j.Logger jboss = org.apache.log4j.Logger.getLogger("org.jboss");
38       jboss.setLevel(XLevel.ALL);
39    }
40
41    // Public --------------------------------------------------------
42

43    // Protected ------------------------------------------------------
44

45    protected void setUp()
46       throws Exception JavaDoc
47    {
48       log.info("========= Start test: " + getName());
49    }
50
51    protected void tearDown()
52       throws Exception JavaDoc
53    {
54       log.info("========== Stop test: " + getName());
55    }
56
57    // Package Private ------------------------------------------------
58

59    // Private --------------------------------------------------------
60

61    // Inner Classes --------------------------------------------------
62
}
63
Popular Tags