You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/src/main/scala/org/mockito/stubbing/ScalaFirstStubbing.scala
+5-5
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ case class ScalaFirstStubbing[T: ValueClassExtractor](delegate: OngoingStubbing[
27
27
* 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
* 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}
31
31
*
32
32
* @paramvalue
33
33
* first return value
@@ -43,7 +43,7 @@ case class ScalaFirstStubbing[T: ValueClassExtractor](delegate: OngoingStubbing[
43
43
* </code></pre> <pre class="code"><code class="java"> when(mock.someMethod) thenThrow (new RuntimeException, new OtherException) </code></pre>
44
44
*
45
45
* <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}
47
47
*
48
48
* @paramthrowables
49
49
* to be thrown on method invocation
@@ -57,7 +57,7 @@ case class ScalaFirstStubbing[T: ValueClassExtractor](delegate: OngoingStubbing[
57
57
* </code></pre>
58
58
*
59
59
* <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}
61
61
*
62
62
* <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
@@ -80,9 +80,9 @@ case class ScalaFirstStubbing[T: ValueClassExtractor](delegate: OngoingStubbing[
80
80
*
81
81
* // calls real method: mock.someMethod();
82
82
*
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
84
84
* 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
Copy file name to clipboardExpand all lines: common/src/main/scala/org/mockito/stubbing/ScalaOngoingStubbing.scala
+5-5
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ case class ScalaOngoingStubbing[T: ValueClassExtractor](delegate: OngoingStubbin
15
15
/**
16
16
* 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>
17
17
*
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}
19
19
*
20
20
* @paramvalue
21
21
* first return value
@@ -32,7 +32,7 @@ case class ScalaOngoingStubbing[T: ValueClassExtractor](delegate: OngoingStubbin
32
32
*
33
33
* 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
34
34
* 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}
36
36
*
37
37
* @paramthrowables
38
38
* to be thrown on method invocation
@@ -46,7 +46,7 @@ case class ScalaOngoingStubbing[T: ValueClassExtractor](delegate: OngoingStubbin
46
46
* </code></pre>
47
47
*
48
48
* <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}
50
50
*
51
51
* <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
@@ -69,9 +69,9 @@ case class ScalaOngoingStubbing[T: ValueClassExtractor](delegate: OngoingStubbin
69
69
*
70
70
* // calls real method: mock.someMethod();
71
71
*
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
73
73
* 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
0 commit comments