@@ -28,7 +28,7 @@ import verbs.{ResultOfTaggedAsInvocation, ResultOfStringPassedToVerb, BehaveWord
28
28
* Implementation trait for class <code>AnyFlatSpec</code>, which facilitates a
29
29
* “behavior-driven” style of development (BDD), in which tests
30
30
* are combined with text that specifies the behavior the tests verify.
31
- *
31
+ *
32
32
* <p>
33
33
* <a href="AnyFlatSpec.html"><code>AnyFlatSpec</code></a> is a class, not a trait,
34
34
* to minimize compile time given there is a slight compiler overhead to
@@ -204,7 +204,7 @@ trait AnyFlatSpecLike extends TestSuite with TestRegistration with ShouldVerb wi
204
204
* </pre>
205
205
*
206
206
* <p>
207
- * For more information and examples of the use of the <code>behavior</code> field, see the main documentation
207
+ * For more information and examples of the use of the <code>behavior</code> field, see the main documentation
208
208
* for this trait.
209
209
* </p>
210
210
*/
@@ -470,7 +470,7 @@ trait AnyFlatSpecLike extends TestSuite with TestRegistration with ShouldVerb wi
470
470
* </pre>
471
471
*
472
472
* <p>
473
- * For more information and examples of the use of the <code>it</code> field, see the main documentation
473
+ * For more information and examples of the use of the <code>it</code> field, see the main documentation
474
474
* for this trait.
475
475
* </p>
476
476
*/
@@ -613,7 +613,7 @@ trait AnyFlatSpecLike extends TestSuite with TestRegistration with ShouldVerb wi
613
613
* </pre>
614
614
*
615
615
* <p>
616
- * For more information and examples of the use of the <code>it</code> field, see the main documentation
616
+ * For more information and examples of the use of the <code>it</code> field, see the main documentation
617
617
* for this trait.
618
618
* </p>
619
619
*/
@@ -924,7 +924,7 @@ trait AnyFlatSpecLike extends TestSuite with TestRegistration with ShouldVerb wi
924
924
* </p>
925
925
*/
926
926
protected val ignore = new IgnoreWord
927
-
927
+
928
928
/**
929
929
* Class that supports the registration of tagged tests via the <code>TheyWord</code> instance
930
930
* referenced from <code>AnyFlatSpec</code>'s <code>they</code> field.
@@ -1185,7 +1185,7 @@ trait AnyFlatSpecLike extends TestSuite with TestRegistration with ShouldVerb wi
1185
1185
* </pre>
1186
1186
*
1187
1187
* <p>
1188
- * For more information and examples of the use of the <code>it</code> field, see the main documentation
1188
+ * For more information and examples of the use of the <code>it</code> field, see the main documentation
1189
1189
* for this trait.
1190
1190
* </p>
1191
1191
*/
@@ -1328,7 +1328,7 @@ trait AnyFlatSpecLike extends TestSuite with TestRegistration with ShouldVerb wi
1328
1328
* </pre>
1329
1329
*
1330
1330
* <p>
1331
- * For more information and examples of the use of the <code>it</code> field, see the main documentation
1331
+ * For more information and examples of the use of the <code>it</code> field, see the main documentation
1332
1332
* for this trait.
1333
1333
* </p>
1334
1334
*/
@@ -1398,7 +1398,7 @@ import resultOfStringPassedToVerb.verb
1398
1398
def in (testFun : => Any /* Assertion */ )(implicit pos : source.Position ): Unit = {
1399
1399
registerTestToRun(verb.trim + " " + rest.trim, " in" , List (), () => testFun, pos)
1400
1400
}
1401
-
1401
+
1402
1402
/**
1403
1403
* Supports the registration of ignored tests in shorthand form.
1404
1404
*
@@ -1430,7 +1430,7 @@ import resultOfStringPassedToVerb.verb
1430
1430
*/
1431
1431
protected implicit def convertToInAndIgnoreMethods (resultOfStringPassedToVerb : ResultOfStringPassedToVerb ): InAndIgnoreMethods =
1432
1432
new InAndIgnoreMethods (resultOfStringPassedToVerb)
1433
-
1433
+
1434
1434
/**
1435
1435
* Class that supports tagged test registration in shorthand form.
1436
1436
*
@@ -1562,17 +1562,17 @@ import resultOfStringPassedToVerb.verb
1562
1562
new ResultOfStringPassedToVerb (verb, rest) {
1563
1563
1564
1564
def is (testFun : => PendingStatement ): Unit = {
1565
- registerTestToRun(verb.trim + " " + rest.trim, " is" , List (), () => { testFun; succeed }, pos)
1565
+ registerTestToRun(this . verb.trim + " " + this . rest.trim, " is" , List (), () => { testFun; succeed }, pos)
1566
1566
}
1567
1567
// Note, won't have an is method that takes fixture => PendingStatement one, because don't want
1568
1568
// to say is (fixture => pending), rather just say is (pending)
1569
1569
def taggedAs (firstTestTag : Tag , otherTestTags : Tag * ) = {
1570
1570
val tagList = firstTestTag :: otherTestTags.toList
1571
- new ResultOfTaggedAsInvocation (verb, rest, tagList) {
1571
+ new ResultOfTaggedAsInvocation (this . verb, this . rest, tagList) {
1572
1572
// "A Stack" should "bla bla" taggedAs(SlowTest) is (pending)
1573
1573
// ^
1574
1574
def is (testFun : => PendingStatement ): Unit = {
1575
- registerTestToRun(verb.trim + " " + rest.trim, " is" , tags, () => { testFun; succeed }, pos)
1575
+ registerTestToRun(this . verb.trim + " " + this . rest.trim, " is" , this . tags, () => { testFun; succeed }, pos)
1576
1576
}
1577
1577
}
1578
1578
}
@@ -1608,7 +1608,7 @@ import resultOfStringPassedToVerb.verb
1608
1608
}
1609
1609
}
1610
1610
1611
- // TODO: I got a:
1611
+ // TODO: I got a:
1612
1612
// runsuite:
1613
1613
// [scalatest] *** RUN ABORTED ***
1614
1614
// [scalatest] An exception or error caused a run to abort: Duplicate test name: should return the new exception with the clue string appended, separated by a space char if passed a function that does that (Engine.scala:464)
@@ -1647,12 +1647,12 @@ import resultOfStringPassedToVerb.verb
1647
1647
* the <code>Set</code> of tags for the test. If this <code>AnyFlatSpec</code> contains no tags, this method returns an empty <code>Map</code>.
1648
1648
*
1649
1649
* <p>
1650
- * This trait's implementation returns tags that were passed as strings contained in <code>Tag</code> objects passed to
1651
- * <code>taggedAs</code>.
1650
+ * This trait's implementation returns tags that were passed as strings contained in <code>Tag</code> objects passed to
1651
+ * <code>taggedAs</code>.
1652
1652
* </p>
1653
- *
1653
+ *
1654
1654
* <p>
1655
- * In addition, this trait's implementation will also auto-tag tests with class level annotations.
1655
+ * In addition, this trait's implementation will also auto-tag tests with class level annotations.
1656
1656
* For example, if you annotate <code>@Ignore</code> at the class level, all test methods in the class will be auto-annotated with
1657
1657
* <code>org.scalatest.Ignore</code>.
1658
1658
* </p>
@@ -1814,7 +1814,7 @@ import resultOfStringPassedToVerb.verb
1814
1814
* </p>
1815
1815
*/
1816
1816
protected val behave = new BehaveWord
1817
-
1817
+
1818
1818
/**
1819
1819
* <strong>The <code>styleName</code> lifecycle method has been deprecated and will be removed in a future version of ScalaTest.</strong>
1820
1820
*
0 commit comments