File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
scalatest/src/main/scala/org/scalatest/path Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -274,10 +274,11 @@ import org.scalatest._
274274 *
275275 * <p>
276276 * The reason lexical placement is the one and only one way to share fixtures in a <code>path.FreeSpec</code> is because
277- * all of its lifecycle methods are overridden and declared <code>final</code>. Thus you can't override
278- * <code>withFixture</code>, because it is <code>final</code>, or mix in <code>BeforeAndAfter</code> or
277+ * all of its lifecycle methods are overridden and declared <code>final</code>. Thus you can't mix in <code>BeforeAndAfter</code> or
279278 * <code>BeforeAndAfterEach</code>, because both override <code>runTest</code>, which is <code>final</code> in
280- * a <code>path.FreeSpec</code>. In short:
279+ * a <code>path.FreeSpec</code>. You also can't override <code>withFixture</code>, because <code>path.FreeSpec</code>
280+ * extends <a href="../Suite.html"><code>Suite</code></a> not <a href="../TestSuite.html"><code>TestSuite</code></a>,
281+ * where <code>withFixture</code> is defined. In short:
281282 * </p>
282283 *
283284 * <p>
Original file line number Diff line number Diff line change @@ -274,10 +274,11 @@ import org.scalatest._
274274 *
275275 * <p>
276276 * The reason lexical placement is the one and only one way to share fixtures in a <code>path.FunSpec</code> is because
277- * all of its lifecycle methods are overridden and declared <code>final</code>. Thus you can't override
278- * <code>withFixture</code>, because it is <code>final</code>, or mix in <code>BeforeAndAfter</code> or
277+ * all of its lifecycle methods are overridden and declared <code>final</code>. Thus you can't mix in <code>BeforeAndAfter</code> or
279278 * <code>BeforeAndAfterEach</code>, because both override <code>runTest</code>, which is <code>final</code> in
280- * a <code>path.FunSpec</code>. In short:
279+ * a <code>path.FunSpec</code>. You also can't override <code>withFixture</code>, because <code>path.FreeSpec</code>
280+ * extends <a href="../Suite.html"><code>Suite</code></a> not <a href="../TestSuite.html"><code>TestSuite</code></a>,
281+ * where <code>withFixture</code> is defined. In short:
281282 * </p>
282283 *
283284 * <p>
You can’t perform that action at this time.
0 commit comments