Skip to content

Commit

Permalink
Generated by gradle-git-publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
junit-builds committed Apr 12, 2024
1 parent 1ede734 commit b5a8d64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/snapshot/user-guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1917,6 +1917,7 @@ <h4 id="writing-tests-assertions-kotlin"><a class="anchor" href="#writing-tests-
<span class="p">}</span>

<span class="nd">@Test</span>
<span class="err">@</span><span class="n">extensions</span><span class="p">.</span><span class="nc">DisabledOnOpenJ9</span>
<span class="k">fun</span> <span class="nf">`expected</span> <span class="n">exception</span> <span class="nf">testing`</span><span class="p">()</span> <span class="p">{</span>
<span class="kd">val</span> <span class="py">calculator</span> <span class="p">=</span> <span class="nc">Calculator</span><span class="p">()</span>
<span class="kd">val</span> <span class="py">exception</span> <span class="p">=</span> <span class="n">assertThrows</span><span class="p">&lt;</span><span class="nc">ArithmeticException</span><span class="p">&gt;</span> <span class="p">(</span><span class="s">"Should throw an exception"</span><span class="p">)</span> <span class="p">{</span>
Expand Down Expand Up @@ -11504,7 +11505,7 @@ <h4 id="testkit-engine-events"><a class="anchor" href="#testkit-engine-events"><
<span class="o">.</span><span class="na">assertThatEvents</span><span class="o">().</span><span class="na">haveExactly</span><span class="o">(</span><span class="mi">1</span><span class="o">,</span> <i class="conum" data-value="5"></i><b>(5)</b>
<span class="n">event</span><span class="o">(</span><span class="n">test</span><span class="o">(</span><span class="s">"failingTest"</span><span class="o">),</span>
<span class="n">finishedWithFailure</span><span class="o">(</span>
<span class="n">instanceOf</span><span class="o">(</span><span class="nc">ArithmeticException</span><span class="o">.</span><span class="na">class</span><span class="o">),</span> <span class="n">message</span><span class="o">(</span><span class="s">"/ by zero"</span><span class="o">))));</span>
<span class="n">instanceOf</span><span class="o">(</span><span class="nc">ArithmeticException</span><span class="o">.</span><span class="na">class</span><span class="o">),</span> <span class="n">message</span><span class="o">(</span><span class="n">it</span> <span class="o">-&gt;</span> <span class="n">it</span><span class="o">.</span><span class="na">endsWith</span><span class="o">(</span><span class="s">"by zero"</span><span class="o">)))));</span>
<span class="o">}</span>

<span class="o">}</span></code></pre>
Expand Down Expand Up @@ -11612,7 +11613,7 @@ <h4 id="testkit-engine-events"><a class="anchor" href="#testkit-engine-events"><
<span class="n">message</span><span class="o">(</span><span class="n">m</span> <span class="o">-&gt;</span> <span class="n">m</span><span class="o">.</span><span class="na">contains</span><span class="o">(</span><span class="s">"abc does not contain Z"</span><span class="o">)))),</span>
<span class="n">event</span><span class="o">(</span><span class="n">test</span><span class="o">(</span><span class="s">"failingTest"</span><span class="o">),</span> <span class="n">started</span><span class="o">()),</span>
<span class="n">event</span><span class="o">(</span><span class="n">test</span><span class="o">(</span><span class="s">"failingTest"</span><span class="o">),</span> <span class="n">finishedWithFailure</span><span class="o">(</span>
<span class="n">instanceOf</span><span class="o">(</span><span class="nc">ArithmeticException</span><span class="o">.</span><span class="na">class</span><span class="o">),</span> <span class="n">message</span><span class="o">(</span><span class="s">"/ by zero"</span><span class="o">))),</span>
<span class="n">instanceOf</span><span class="o">(</span><span class="nc">ArithmeticException</span><span class="o">.</span><span class="na">class</span><span class="o">),</span> <span class="n">message</span><span class="o">(</span><span class="n">it</span> <span class="o">-&gt;</span> <span class="n">it</span><span class="o">.</span><span class="na">endsWith</span><span class="o">(</span><span class="s">"by zero"</span><span class="o">)))),</span>
<span class="n">event</span><span class="o">(</span><span class="n">container</span><span class="o">(</span><span class="nc">ExampleTestCase</span><span class="o">.</span><span class="na">class</span><span class="o">),</span> <span class="n">finishedSuccessfully</span><span class="o">()),</span>
<span class="n">event</span><span class="o">(</span><span class="n">engine</span><span class="o">(),</span> <span class="n">finishedSuccessfully</span><span class="o">()));</span>
<span class="o">}</span>
Expand Down

0 comments on commit b5a8d64

Please sign in to comment.