A query for writing unit tests - jcl-over-slf4j

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

Hi Can someone help me with my query? Thank you Farid On Tue, Dec 1, 2015 at 11:54 AM, Mohd Farid <mohd.farid@devfactory.com> wrote:
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
participants (1)
-
Mohd Farid