KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ofbiz > base > test > BaseUnitTests


1 /*
2  * $Id: BaseUnitTests.java 5462 2005-08-05 18:35:48Z jonesde $
3  *
4  */

5 package org.ofbiz.base.test;
6
7 import junit.framework.TestCase;
8
9 import org.ofbiz.base.util.Debug;
10
11 /**
12  *
13  * @author <a HREF="mailto:jaz@ofbiz.org">Andy Zeneski</a>
14  * @version $Rev: 5462 $
15  * @since May 4, 2004
16  */

17 public class BaseUnitTests extends TestCase {
18
19     public BaseUnitTests(String JavaDoc name) {
20         super(name);
21     }
22
23     public void testDebug() {
24         Debug.set(Debug.VERBOSE, true);
25         assertTrue(Debug.verboseOn());
26
27         Debug.set(Debug.VERBOSE, false);
28         assertTrue(!Debug.verboseOn());
29
30         Debug.set(Debug.INFO, true);
31         assertTrue(Debug.infoOn());
32     }
33 }
34
Popular Tags