1 4 package org.oddjob.logging; 5 6 import junit.framework.TestCase; 7 8 11 public class LogEnabledTest extends TestCase { 12 13 class Thing1 { 14 public String getLogger() { return "thing"; } 15 } 16 17 public class Thing2 { 18 public String getLogger() { return "thing"; } 19 } 20 21 public static class Thing3 { 22 public String getLogger() { return "thing"; } 23 } 24 25 26 public void test1() { 29 assertNull(LogHelper.getLogger(new Thing1())); 30 assertEquals("thing", LogHelper.getLogger(new Thing2())); 31 assertEquals("thing", LogHelper.getLogger(new Thing3())); 32 } 33 } 34 | Popular Tags |