@@ -2,7 +2,6 @@ package com.twitter.scrooge.backend
2
2
3
3
import com .twitter .conversions .time ._
4
4
import com .twitter .finagle .{Service , SourcedException }
5
- import com .twitter .finagle .thrift .ThriftServiceIface
6
5
import com .twitter .scrooge .testutil .{EvalHelper , JMockSpec }
7
6
import com .twitter .scrooge .{ThriftStruct , ThriftException }
8
7
import com .twitter .util .{Await , Future }
@@ -11,13 +10,10 @@ import java.nio.ByteBuffer
11
10
import org .apache .thrift .protocol ._
12
11
import org .apache .thrift .transport .TMemoryBuffer
13
12
import org .jmock .Expectations
14
- import org .jmock .Expectations .{ any , returnValue }
13
+ import org .jmock .Expectations .returnValue
15
14
import thrift .test ._
16
15
import thrift .test1 ._
17
16
import thrift .test2 ._
18
- import thrift .`def` .default ._
19
- import includes .a .thriftscala ._
20
- import includes .b .thriftscala ._
21
17
import inheritance .aaa .{Aaa , Box }
22
18
import inheritance .bbb .Bbb
23
19
import inheritance .ccc .Ccc
@@ -506,7 +502,7 @@ class ScalaGeneratorSpec extends JMockSpec with EvalHelper {
506
502
" missing required value throws exception during deserialization" should {
507
503
" with no default value" in { cycle => import cycle ._
508
504
val protocol = mock[TProtocol ]
509
- expecting { e => import e . _
505
+ expecting { e =>
510
506
emptyRead(e, protocol)
511
507
}
512
508
@@ -519,7 +515,7 @@ class ScalaGeneratorSpec extends JMockSpec with EvalHelper {
519
515
520
516
" with default value" in { cycle => import cycle ._
521
517
val protocol = mock[TProtocol ]
522
- expecting { e => import e . _
518
+ expecting { e =>
523
519
emptyRead(e, protocol)
524
520
}
525
521
@@ -799,7 +795,7 @@ class ScalaGeneratorSpec extends JMockSpec with EvalHelper {
799
795
" zero fields" should {
800
796
" read" in { cycle => import cycle ._
801
797
val protocol = mock[TProtocol ]
802
- expecting { e => import e . _
798
+ expecting { e =>
803
799
emptyRead(e, protocol)
804
800
}
805
801
0 commit comments