File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
src/test/scala/com/typesafe/scalalogging Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 11package com .typesafe .scalalogging
22
3- import org .slf4j .{ Logger => Underlying }
3+ import com .typesafe .scalalogging .tag .@@
4+ import org .slf4j .{Logger => Underlying }
45import org .scalatest .matchers .should .Matchers
56import org .scalatest .wordspec .AnyWordSpec
67import org .scalatestplus .mockito .MockitoSugar
@@ -106,11 +107,11 @@ class LoggerWithTaggedArgsSpec extends AnyWordSpec with Matchers with Varargs wi
106107
107108 private def fixture (p : Underlying => Boolean , isEnabled : Boolean = true ) = new LoggerF (p, isEnabled)
108109 private class LoggerF (p : Underlying => Boolean , isEnabled : Boolean = true ) {
109- val arg1 = tag.taggedString[Tag ](" arg1" )
110- val arg2 = tag.taggedInteger[Tag ](Integer .valueOf(1 ))
111- val arg3 = tag.taggedBoolean[Boolean ](true )
112- val underlying = mock[org.slf4j.Logger ]
110+ val arg1 : String @@ Tag = tag.taggedString[Tag ](" arg1" )
111+ val arg2 : Integer @@ Tag = tag.taggedInteger[Tag ](Integer .valueOf(1 ))
112+ val arg3 : Boolean @@ Boolean = tag.taggedBoolean[Boolean ](true )
113+ val underlying : Underlying = mock[org.slf4j.Logger ]
113114 when(p(underlying)).thenReturn(isEnabled)
114- val logger = Logger (underlying)
115+ val logger : Logger = Logger (underlying)
115116 }
116117}
You can’t perform that action at this time.
0 commit comments