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 1
1
package com .typesafe .scalalogging
2
2
3
- import org .slf4j .{ Logger => Underlying }
3
+ import com .typesafe .scalalogging .tag .@@
4
+ import org .slf4j .{Logger => Underlying }
4
5
import org .scalatest .matchers .should .Matchers
5
6
import org .scalatest .wordspec .AnyWordSpec
6
7
import org .scalatestplus .mockito .MockitoSugar
@@ -106,11 +107,11 @@ class LoggerWithTaggedArgsSpec extends AnyWordSpec with Matchers with Varargs wi
106
107
107
108
private def fixture (p : Underlying => Boolean , isEnabled : Boolean = true ) = new LoggerF (p, isEnabled)
108
109
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 ]
113
114
when(p(underlying)).thenReturn(isEnabled)
114
- val logger = Logger (underlying)
115
+ val logger : Logger = Logger (underlying)
115
116
}
116
117
}
You can’t perform that action at this time.
0 commit comments