|
specs 1.2.3 API
|
|
trait
LiteralSpecification
extends Specification with DataTables| Values and Variables inherited from SpecificationStructure | |
| description, name, subSpecifications, suts |
| Values and Variables inherited from ExampleLifeCycle | |
| sequential, example |
| Method Summary | |
implicit def
|
anyToAs
[T](a : T) : AsProperty[T]
This method is used setup a property value, in order to avoid repeting a string. For example:
The name of the person should be {"john" as personName in checkPersonName}
. |
implicit def
|
anyToShh
(a : Any) : Silenced
This method is used to silence the result of a call in an action. For example:
The timer should be stopped {timer.stop.shh}
. This will not output the result of the stop method |
implicit def
|
makeTable
(s : java.lang.String) : TableExample
This method allows to embbed a DataTable in a literal specification and display the results of its execution
|
| Methods inherited from DataTables | |
| toTableHeader, toDataRow |
| Methods inherited from Specification | |
| usingBefore, doBefore, usingAfter, doAfter, failures, skipped, errors, assertionsNb, pretty, fail, skip |
| Methods inherited from AssertFactory | |
| addAssertion, theString, theValue, theBlock, toStringIterableAssert, toIterableAssert |
| Methods inherited from SpecificationStructure | |
| createDescription, isSpecifiedBy, areSpecifiedBy, declare, specify, currentSut, forExample, exampleContainer |
| Methods inherited from ExampleLifeCycle | |
| isSequential, setSequential, beforeExample, beforeTest, afterTest, executeTest, afterExample |
| Methods inherited from MatcherResult | |
| toMatcherResult, toTuple |
| Methods inherited from XmlMatchers | |
| \\, \\, \\, \\, \\, \\, \, \, \, \, \, \, equalIgnoreSpace, ==/ |
| Methods inherited from MockMatchers | |
| beMet, any |
| Methods inherited from PatternMatchers | |
| beLike, beNone, beSome, beSomething |
| Methods inherited from ScalacheckMatchers | |
| defaultParameters, pass, pass, pass, pass, checkFunction, checkProperty, checkScalacheckProperty |
| Methods inherited from ScalacheckFunctions | |
| check, forAll |
| Methods inherited from ConsoleOutput | |
| println, printf, flush |
| Methods inherited from NumericMatchers | |
| beStrictlyLessThan, be_<, beStrictlyGreaterThan, be_>, beLessThan, be_<=, beGreaterThan, be_>=, beCloseTo |
| Methods inherited from MapMatchers | |
| haveKey, notHaveKey, haveValue, notHaveValue, havePair, notHavePair, beDefinedAt, beDefinedBy |
| Methods inherited from IterableMatchers | |
| contain, notContain, exist, notExist, existMatch, containMatch, notExistMatch, haveSameElementsAs |
| Methods inherited from StringMatchers | |
| equalIgnoreCase, notEqualIgnoreCase, include, notInclude, beMatching, notBeMatching, startWith, notStartWith, endWith, notEndWith |
| Methods inherited from LogicalMatchers | |
| not, verifyAll, verifyAll, verifyAny, verifyAny |
| Methods inherited from AnyMatchers | |
| be, notBe, beEqual, beDifferent, is_==, be_==, notEq, is_!=, be_!=, beNull, notBeNull, beTrue, beFalse, beIn, notBeIn, beEmpty, notBeEmpty, isNotEmpty, isEmpty, verify, throwException, throwA, throwAn, throwThis, throwFailure |
| Methods inherited from AnyRef | |
| getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
| Methods inherited from Any | |
| ==, !=, isInstanceOf, asInstanceOf |
| Class Summary | |
class
|
AsProperty
[T](a : T) extends AnyRef
|
class
|
Silenced
extends AnyRef
|
case class
|
TableExample
(val desc : java.lang.String) extends scala.Product
|
| Method Details |
The timer should be stopped {timer.stop.shh}
. This will not output the result of the stop methodimplicit
def
anyToAs[T](a : T) : AsProperty[T]
The name of the person should be {"john" as personName in checkPersonName}
.implicit
def
makeTable(s : java.lang.String) : TableExample
|
specs 1.2.3 API
|
|