Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions src/main/scala/org/scalatestplus/junit5/JUnitSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,38 @@ package org.scalatestplus.junit5;
* methods annotated with <code>Before</code> and <code>After</code>. For example:
*
* <pre class="stHighlight">
* import org.scalatest.junit5.JUnitSuite
* import org.junit.jupiter.api.{BeforeEach, Test}
* import org.scalatestplus.junit5.JUnitSuite
* import scala.collection.mutable.ListBuffer
* import _root_.org.junit.Test
* import _root_.org.junit.Before
*
* class TwoSuite extends JUnitSuite {
*
* var sb: StringBuilder = _
* var lb: ListBuffer[String] = _
*
* @Before def initialize() {
*
* @BeforeEach def initialize() {
* sb = new StringBuilder("ScalaTest is ")
* lb = new ListBuffer[String]
* }
*
*
* @Test def verifyEasy() {
* sb.append("easy!")
* assert(sb.toString === "ScalaTest is easy!")
* assert(lb.isEmpty)
* lb += "sweet"
* }
*
*
* @Test def verifyFun() {
* sb.append("fun!")
* assert(sb.toString === "ScalaTest is fun!")
* assert(lb.isEmpty)
* }
*
* }
* </pre>
*
* <p>
* To execute <code>JUnitSuite</code>s with ScalaTest's <code>Runner</code>, you must include JUnit 5's jar file on the class path or runpath.
* This version of <code>JUnitSuite</code> was tested with JUnit version 5.9.
* This version of <code>JUnitSuite</code> was tested with JUnit version 5.10.
* </p>
*
* <p>
Expand Down