org.spockframework.runtime
Class Sputnik

java.lang.Object
  extended by org.junit.runner.Runner
      extended by 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.Sortable

A 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
Sputnik(Class<?> clazz)
           
 
Method Summary
 void filter(org.junit.runner.manipulation.Filter filter)
           
 org.junit.runner.Description getDescription()
           
 void run(org.junit.runner.notification.RunNotifier notifier)
           
 void sort(org.junit.runner.manipulation.Sorter sorter)
           
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sputnik

public Sputnik(Class<?> clazz)
Method Detail

getDescription

public org.junit.runner.Description getDescription()
Specified by:
getDescription in interface org.junit.runner.Describable
Specified by:
getDescription in class org.junit.runner.Runner

run

public void run(org.junit.runner.notification.RunNotifier notifier)
Specified by:
run in class org.junit.runner.Runner

filter

public void filter(org.junit.runner.manipulation.Filter filter)
            throws org.junit.runner.manipulation.NoTestsRemainException
Specified by:
filter in interface org.junit.runner.manipulation.Filterable
Throws:
org.junit.runner.manipulation.NoTestsRemainException

sort

public void sort(org.junit.runner.manipulation.Sorter sorter)
Specified by:
sort in interface org.junit.runner.manipulation.Sortable


Copyright © 2010. All Rights Reserved.