25262728293031323334
public void get_by_class() { Class clazz = getClass(); Log expected = LogFactory.getLog(clazz); LogSource logSource = new LogSourceImpl(); Log actual = logSource.getLog(clazz); assertSame(actual, expected); }
3738394041424344454647
public void get_by_name() { String name = "foo.Bar"; Log expected = LogFactory.getLog(name); LogSource logSource = new LogSourceImpl(); Log actual = logSource.getLog(name); assertSame(actual, expected); }