File tree Expand file tree Collapse file tree 3 files changed +31
-31
lines changed
src/test/scala/com/typesafe/scalalogging Expand file tree Collapse file tree 3 files changed +31
-31
lines changed Original file line number Diff line number Diff line change @@ -593,19 +593,19 @@ class LoggerSpec extends AnyWordSpec with Matchers with MockitoSugar with Vararg
593
593
594
594
private def fixture (p : Underlying => Boolean , isEnabled : Boolean ) = new LoggerF (p, isEnabled)
595
595
private class LoggerF (p : Underlying => Boolean , isEnabled : Boolean ) {
596
- val msg = " msg"
597
- val cause = new RuntimeException (" cause" )
598
- val arg1 = " arg1"
599
- val arg2 = new Integer (1 )
600
- val arg3 = " arg3"
601
- val arg4 = 4
602
- val arg4ref = arg4.asInstanceOf [AnyRef ]
603
- val arg5 = true
604
- val arg5ref = arg5.asInstanceOf [AnyRef ]
605
- val arg6 = 6L
606
- val arg6ref = arg6.asInstanceOf [AnyRef ]
607
- val underlying = mock[org.slf4j.Logger ]
608
- when(p(underlying)).thenReturn(isEnabled)
609
- val logger = Logger (underlying)
610
- }
596
+ val msg = " msg"
597
+ val cause = new RuntimeException (" cause" )
598
+ val arg1 = " arg1"
599
+ val arg2 = new Integer (1 )
600
+ val arg3 = " arg3"
601
+ val arg4 = 4
602
+ val arg4ref = arg4.asInstanceOf [AnyRef ]
603
+ val arg5 = true
604
+ val arg5ref = arg5.asInstanceOf [AnyRef ]
605
+ val arg6 = 6L
606
+ val arg6ref = arg6.asInstanceOf [AnyRef ]
607
+ val underlying = mock[org.slf4j.Logger ]
608
+ when(p(underlying)).thenReturn(isEnabled)
609
+ val logger = Logger (underlying)
610
+ }
611
611
}
Original file line number Diff line number Diff line change @@ -383,14 +383,14 @@ class LoggerWithMarkerSpec extends AnyWordSpec with Matchers with MockitoSugar w
383
383
}
384
384
private def fixture (p : Underlying => Marker => Boolean , isEnabled : Boolean ) = new LoggerF (p, isEnabled)
385
385
private class LoggerF (p : Underlying => Marker => Boolean , isEnabled : Boolean ) {
386
- val marker = DummyMarker
387
- val msg = " msg"
388
- val cause = new RuntimeException (" cause" )
389
- val arg1 = " arg1"
390
- val arg2 = new Integer (1 )
391
- val arg3 = " arg3"
392
- val underlying = mock[org.slf4j.Logger ]
393
- when(p(underlying)(marker)).thenReturn(isEnabled)
394
- val logger = Logger (underlying)
395
- }
386
+ val marker = DummyMarker
387
+ val msg = " msg"
388
+ val cause = new RuntimeException (" cause" )
389
+ val arg1 = " arg1"
390
+ val arg2 = new Integer (1 )
391
+ val arg3 = " arg3"
392
+ val underlying = mock[org.slf4j.Logger ]
393
+ when(p(underlying)(marker)).thenReturn(isEnabled)
394
+ val logger = Logger (underlying)
395
+ }
396
396
}
Original file line number Diff line number Diff line change @@ -98,10 +98,10 @@ class LoggerWithTaggedAargsSpec extends AnyWordSpec with MockitoSugar with Match
98
98
99
99
private def fixture (p : Underlying => Boolean , isEnabled : Boolean = true ) = new LoggerF (p, isEnabled)
100
100
private class LoggerF (p : Underlying => Boolean , isEnabled : Boolean = true ) {
101
- val arg1 = tag.taggedString[Tag ](" arg1" )
102
- val arg2 = tag.taggedInteger[Tag ](Integer .valueOf(1 ))
103
- val underlying = mock[org.slf4j.Logger ]
104
- when(p(underlying)).thenReturn(isEnabled)
105
- val logger = Logger (underlying)
106
- }
101
+ val arg1 = tag.taggedString[Tag ](" arg1" )
102
+ val arg2 = tag.taggedInteger[Tag ](Integer .valueOf(1 ))
103
+ val underlying = mock[org.slf4j.Logger ]
104
+ when(p(underlying)).thenReturn(isEnabled)
105
+ val logger = Logger (underlying)
106
+ }
107
107
}
You can’t perform that action at this time.
0 commit comments