[slf4j-dev] A query for writing unit tests - jcl-over-slf4j

Mohd Farid mohd.farid at devfactory.com
Tue Dec 8 17:58:17 UTC 2015


Hi

Can someone help me with my query?

Thank you
Farid

On Tue, Dec 1, 2015 at 11:54 AM, Mohd Farid <mohd.farid at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-dev/attachments/20151208/276f726a/attachment.html>


More information about the slf4j-dev mailing list