Package org.spockframework.runtime
Class Sputnik
- java.lang.Object
-
- org.junit.runner.Runner
-
- org.spockframework.runtime.Sputnik
-
- All Implemented Interfaces:
org.junit.runner.Describable,org.junit.runner.manipulation.Filterable,org.junit.runner.manipulation.Sortable
public class Sputnik extends org.junit.runner.Runner implements org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.SortableA JUnit runner for Spock specifications. There is no need to put @RunWith(Sputnik) on a specification because the RunWith annotation is inherited from class spock.lang.Specification. In case you wondered, Sputnik is a combination of the words "Spock" and "JUnit".- Author:
- Peter Niederwieser
-
-
Constructor Summary
Constructors Constructor Description Sputnik(java.lang.Class<?> clazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(org.junit.runner.manipulation.Filter filter)org.junit.runner.DescriptiongetDescription()voidrun(org.junit.runner.notification.RunNotifier notifier)voidsort(org.junit.runner.manipulation.Sorter sorter)
-
-
-
Method Detail
-
getDescription
public org.junit.runner.Description getDescription()
- Specified by:
getDescriptionin interfaceorg.junit.runner.Describable- Specified by:
getDescriptionin classorg.junit.runner.Runner
-
run
public void run(org.junit.runner.notification.RunNotifier notifier)
- Specified by:
runin classorg.junit.runner.Runner
-
filter
public void filter(org.junit.runner.manipulation.Filter filter) throws org.junit.runner.manipulation.NoTestsRemainException- Specified by:
filterin interfaceorg.junit.runner.manipulation.Filterable- Throws:
org.junit.runner.manipulation.NoTestsRemainException
-
sort
public void sort(org.junit.runner.manipulation.Sorter sorter)
- Specified by:
sortin interfaceorg.junit.runner.manipulation.Sortable
-
-