public interface SpecCreator
AbstractSpecCreator.| Modifier and Type | Method and Description |
|---|---|
void |
afterSpecRun()
Callback that is called after the spec is executed.
|
void |
beforeSpecRun()
Callback that is called before the spec is executed.
|
<T> T |
createSpec(Class<T> klass)
Creates a spec or feature instance.
|
<T> T |
createSubject(Class<T> klass)
Creates the subject of a spec.
|
<T> T createSpec(Class<T> klass)
@code
describe Greeter{
fact subject.sayHello() => "Hello World"
}
the parameter klass will be the generated
GreeterSpec class and this method should return
an instance of GreeterSpec.klass - the spec type<T> T createSubject(Class<T> klass)
@code
describe Greeter{
fact subject.sayHello() => "Hello World"
}
the parameter klass will be the subject's class
Greeter and this method should return
an instance of Greeter.klass - the subject typevoid beforeSpecRun()
void afterSpecRun()
Copyright © 2012-2014 BMW Car IT. All Rights Reserved.