[slf4j-dev] A query for writing unit tests - jcl-over-slf4j
Mohd Farid
mohd.farid at devfactory.com
Tue Dec 1 06:24:28 UTC 2015
Hi
I am working on writing unit tests for *jcl-over-slf4j* module.
I have started with some simple unit tests like:
1. Testing attribute set/get and removals for SLF4JLogFactory
<https://github.com/qos-ch/slf4j/blob/master/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl/SLF4JLogFactory.java>
2. Testing the delegation of calls for SLF4JLocationAwareLog
<https://github.com/qos-ch/slf4j/blob/master/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl/SLF4JLocationAwareLog.java>
and SLF4JLog
<https://github.com/qos-ch/slf4j/blob/master/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl/SLF4JLog.java>
.
I noticed that there are two classes SimpleLog
<https://github.com/qos-ch/slf4j/blob/master/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl/SimpleLog.java>
and NoOpLog
<https://github.com/qos-ch/slf4j/blob/master/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl/NoOpLog.java>
which are nowhere used. I would appreciate if some one can help me
understand the utility of these two classes.
Would it be useful if I write unit tests for these classes?
Thank you
Farid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-dev/attachments/20151201/2c1b17e1/attachment.html>
More information about the slf4j-dev
mailing list