Skip to content

Commit

Permalink
Use separate line for annotation in Javadoc
Browse files Browse the repository at this point in the history
Align coding style of the examples.
  • Loading branch information
stefanbirkner authored and marcphilipp committed Oct 11, 2020
1 parent 510e906 commit 543905d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/java/org/junit/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
* an exception. If it doesn't throw an exception or if it throws a different exception
* than the one declared, the test fails. For example, the following test succeeds:
* <pre>
* &#064;Test(<b>expected=IndexOutOfBoundsException.class</b>) public void outOfBounds() {
* &#064;Test(<b>expected=IndexOutOfBoundsException.class</b>)
* public void outOfBounds() {
* new ArrayList&lt;Object&gt;().get(1);
* }
* </pre>
Expand All @@ -46,7 +47,8 @@
* The parameter <code>timeout</code> causes a test to fail if it takes
* longer than a specified amount of clock time (measured in milliseconds). The following test fails:
* <pre>
* &#064;Test(<b>timeout=100</b>) public void infinity() {
* &#064;Test(<b>timeout=100</b>)
* public void infinity() {
* while(true);
* }
* </pre>
Expand All @@ -55,7 +57,8 @@
* following test may or may not fail depending on how the operating system
* schedules threads:
* <pre>
* &#064;Test(<b>timeout=100</b>) public void sleep100() {
* &#064;Test(<b>timeout=100</b>)
* public void sleep100() {
* Thread.sleep(100);
* }
* </pre>
Expand Down

0 comments on commit 543905d

Please sign in to comment.