25262728293031323334
public void get_by_class() { Class clazz = getClass(); Logger expected = LoggerFactory.getLogger(clazz); LoggerSource logSource = new LoggerSourceImpl(); Logger actual = logSource.getLogger(clazz); assertSame(actual, expected); }
3738394041424344454647
public void get_by_name() { String name = "foo.Bar"; Logger expected = LoggerFactory.getLogger(name); LoggerSource logSource = new LoggerSourceImpl(); Logger actual = logSource.getLogger(name); assertSame(actual, expected); }