Skip to content

Commit 004d04d

Browse files
committed
Fix odd formatting
1 parent 4a9a831 commit 004d04d

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

core/src/main/scala/org/mockito/IdiomaticMockito.scala

+12-19
Original file line numberDiff line numberDiff line change
@@ -41,42 +41,34 @@ trait IdiomaticMockito extends MockCreator {
4141
when(stubbing) thenAnswer functionToAnswer(f)
4242

4343
def shouldAnswer[P0, P1, P2](f: (P0, P1, P2) => T): OngoingStubbing[T] =
44-
when(stubbing) thenAnswer functionToAnswer(
45-
f)
44+
when(stubbing) thenAnswer functionToAnswer(f)
4645

4746
def shouldAnswer[P0, P1, P2, P3](f: (P0, P1, P2, P3) => T): OngoingStubbing[T] =
48-
when(stubbing) thenAnswer functionToAnswer(
49-
f)
47+
when(stubbing) thenAnswer functionToAnswer(f)
5048

5149
def shouldAnswer[P0, P1, P2, P3, P4](f: (P0, P1, P2, P3, P4) => T): OngoingStubbing[T] =
5250
when(stubbing) thenAnswer functionToAnswer(f)
5351

5452
def shouldAnswer[P0, P1, P2, P3, P4, P5](f: (P0, P1, P2, P3, P4, P5) => T): OngoingStubbing[T] =
55-
when(stubbing) thenAnswer functionToAnswer(
56-
f)
53+
when(stubbing) thenAnswer functionToAnswer(f)
5754

5855
def shouldAnswer[P0, P1, P2, P3, P4, P5, P6](f: (P0, P1, P2, P3, P4, P5, P6) => T): OngoingStubbing[T] =
59-
when(stubbing) thenAnswer functionToAnswer(
60-
f)
56+
when(stubbing) thenAnswer functionToAnswer(f)
6157

6258
def shouldAnswer[P0, P1, P2, P3, P4, P5, P6, P7](f: (P0, P1, P2, P3, P4, P5, P6, P7) => T): OngoingStubbing[T] =
63-
when(stubbing) thenAnswer functionToAnswer(
64-
f)
59+
when(stubbing) thenAnswer functionToAnswer(f)
6560

6661
def shouldAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8](
6762
f: (P0, P1, P2, P3, P4, P5, P6, P7, P8) => T): OngoingStubbing[T] =
68-
when(stubbing) thenAnswer functionToAnswer(
69-
f)
63+
when(stubbing) thenAnswer functionToAnswer(f)
7064

7165
def shouldAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9](
7266
f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9) => T): OngoingStubbing[T] =
73-
when(stubbing) thenAnswer functionToAnswer(
74-
f)
67+
when(stubbing) thenAnswer functionToAnswer(f)
7568

7669
def shouldAnswer[P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10](
7770
f: (P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10) => T): OngoingStubbing[T] =
78-
when(stubbing) thenAnswer functionToAnswer(
79-
f)
71+
when(stubbing) thenAnswer functionToAnswer(f)
8072

8173
}
8274

@@ -217,13 +209,14 @@ trait IdiomaticMockito extends MockCreator {
217209
}
218210

219211
object InOrder {
220-
def apply(mocks: AnyRef*)(verifications: Option[InOrder] => Unit): Unit = verifications(Some(Mockito.inOrder(mocks: _*)))
212+
def apply(mocks: AnyRef*)(verifications: Option[InOrder] => Unit): Unit =
213+
verifications(Some(Mockito.inOrder(mocks: _*)))
221214
}
222215

223216
def *[T]: T = ArgumentMatchersSugar.any[T]
224217
}
225218

226219
/**
227-
* Simple object to allow the usage of the trait without mixing it in
228-
*/
220+
* Simple object to allow the usage of the trait without mixing it in
221+
*/
229222
object IdiomaticMockito extends IdiomaticMockito

0 commit comments

Comments
 (0)