Skip to content

Commit c4dab9d

Browse files
Update scalafmt-core to 3.7.15 (#513)
1 parent 6d1749a commit c4dab9d

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.git-blame-ignore-revs

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Scala Steward: Reformat with scalafmt 3.5.9
22
ff8ca52d610ca63ee0ab4fcfb5d79da13a1250b1
3+
4+
# Scala Steward: Reformat with scalafmt 3.7.15
5+
8fa2251b493a78759fc04a2f74189b9f8bdc07c4

.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ rewrite.rules = [RedundantBraces, RedundantParens, SortImports]
77
spaces.inImportCurlyBraces = true
88
indentOperator.preset = spray
99

10-
version=3.7.14
10+
version=3.7.15
1111

common/src/main/scala/org/mockito/stubbing/ScalaFirstStubbing.scala

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ case class ScalaFirstStubbing[T: ValueClassExtractor](delegate: OngoingStubbing[
2727
* Sets consecutive return one or more values to be returned when the method is called. E.g: <pre class="code"><code class="scala"> when(mock.someMethod) thenReturn 1
2828
* </code></pre> <pre class="code"><code class="scala"> when(mock.someMethod) thenReturn (1, 2, 3) </code></pre>
2929
*
30-
* Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. <p> See examples in javadoc for {@link org.mockito.MockitoSugar#when}
30+
* Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. <p> See examples in javadoc for {@@linkorg.mockito.MockitoSugar#when}
3131
*
3232
* @param value
3333
* first return value
@@ -43,7 +43,7 @@ case class ScalaFirstStubbing[T: ValueClassExtractor](delegate: OngoingStubbing[
4343
* </code></pre> <pre class="code"><code class="java"> when(mock.someMethod) thenThrow (new RuntimeException, new OtherException) </code></pre>
4444
*
4545
* <p> You can specify throwables to be thrown for consecutive calls. In that case the last throwable determines the behavior of further consecutive calls. <p> If throwable is
46-
* null then exception will be thrown. <p> See examples in javadoc for {@link org.mockito.MockitoSugar#when}
46+
* null then exception will be thrown. <p> See examples in javadoc for {@@linkorg.mockito.MockitoSugar#when}
4747
*
4848
* @param throwables
4949
* to be thrown on method invocation
@@ -57,7 +57,7 @@ case class ScalaFirstStubbing[T: ValueClassExtractor](delegate: OngoingStubbing[
5757
* </code></pre>
5858
*
5959
* <p> If the throwable class is a checked exception then it has to match one of the checked exceptions of the stubbed method signature. <p> If throwable is null then exception
60-
* will be thrown. <p> See examples in javadoc for {@link Mockito#when}
60+
* will be thrown. <p> See examples in javadoc for {@@linkMockito#when}
6161
*
6262
* <p>Note depending on the JVM, stack trace information may not be available in the generated throwable instance. If you require stack trace information, use {@link
6363
* OngoingStubbing#thenThrow(Throwable...)} instead.
@@ -80,9 +80,9 @@ case class ScalaFirstStubbing[T: ValueClassExtractor](delegate: OngoingStubbing[
8080
*
8181
* // calls real method: mock.someMethod();
8282
*
83-
* </code></pre> See also javadoc {@link Mockito#spy(Object)} to find out more about partial mocks. <b>Mockito.spy() is a recommended way of creating partial mocks.</b> The
83+
* </code></pre> See also javadoc {@@linkMockito#spy(Object)} to find out more about partial mocks. <b>Mockito.spy() is a recommended way of creating partial mocks.</b> The
8484
* reason is it guarantees real methods are called against correctly constructed object because you're responsible for constructing the object passed to spy() method. <p> See
85-
* examples in javadoc for {@link Mockito#when}
85+
* examples in javadoc for {@@linkMockito#when}
8686
*
8787
* @return
8888
* object that allows stubbing consecutive calls

common/src/main/scala/org/mockito/stubbing/ScalaOngoingStubbing.scala

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ case class ScalaOngoingStubbing[T: ValueClassExtractor](delegate: OngoingStubbin
1515
/**
1616
* Sets consecutive return values to be returned when the method is called. E.g: <pre class="code"><code class="java"> when(mock.someMethod()).thenReturn(1, 2, 3); </code></pre>
1717
*
18-
* Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. <p> See examples in javadoc for {@link Mockito#when}
18+
* Last return value in the sequence (in example: 3) determines the behavior of further consecutive calls. <p> See examples in javadoc for {@@linkMockito#when}
1919
*
2020
* @param value
2121
* first return value
@@ -32,7 +32,7 @@ case class ScalaOngoingStubbing[T: ValueClassExtractor](delegate: OngoingStubbin
3232
*
3333
* If throwables contain a checked exception then it has to match one of the checked exceptions of method signature. <p> You can specify throwables to be thrown for consecutive
3434
* calls. In that case the last throwable determines the behavior of further consecutive calls. <p> If throwable is null then exception will be thrown. <p> See examples in
35-
* javadoc for {@link Mockito#when}
35+
* javadoc for {@@linkMockito#when}
3636
*
3737
* @param throwables
3838
* to be thrown on method invocation
@@ -46,7 +46,7 @@ case class ScalaOngoingStubbing[T: ValueClassExtractor](delegate: OngoingStubbin
4646
* </code></pre>
4747
*
4848
* <p> If the throwable class is a checked exception then it has to match one of the checked exceptions of the stubbed method signature. <p> If throwable is null then exception
49-
* will be thrown. <p> See examples in javadoc for {@link Mockito#when}
49+
* will be thrown. <p> See examples in javadoc for {@@linkMockito#when}
5050
*
5151
* <p>Note depending on the JVM, stack trace information may not be available in the generated throwable instance. If you require stack trace information, use {@link
5252
* OngoingStubbing#thenThrow(Throwable...)} instead.
@@ -69,9 +69,9 @@ case class ScalaOngoingStubbing[T: ValueClassExtractor](delegate: OngoingStubbin
6969
*
7070
* // calls real method: mock.someMethod();
7171
*
72-
* </code></pre> See also javadoc {@link Mockito#spy(Object)} to find out more about partial mocks. <b>Mockito.spy() is a recommended way of creating partial mocks.</b> The
72+
* </code></pre> See also javadoc {@@linkMockito#spy(Object)} to find out more about partial mocks. <b>Mockito.spy() is a recommended way of creating partial mocks.</b> The
7373
* reason is it guarantees real methods are called against correctly constructed object because you're responsible for constructing the object passed to spy() method. <p> See
74-
* examples in javadoc for {@link Mockito#when}
74+
* examples in javadoc for {@@linkMockito#when}
7575
*
7676
* @return
7777
* object that allows stubbing consecutive calls

0 commit comments

Comments
 (0)