org.junit.experimental.theories
Class Theories

java.lang.Object
  extended by org.junit.runner.Runner
      extended by org.junit.runners.ParentRunner<FrameworkMethod>
          extended by org.junit.runners.BlockJUnit4ClassRunner
              extended by org.junit.experimental.theories.Theories
All Implemented Interfaces:
Describable, Filterable, Sortable

public class Theories
extends BlockJUnit4ClassRunner


Nested Class Summary
 class Theories.TheoryAnchor
           
 
Constructor Summary
Theories(Class<?> klass)
           
 
Method Summary
 Statement methodBlock(FrameworkMethod method)
          Returns a Statement that, when executed, either returns normally if method passes, or throws an exception if method fails.
 
Methods inherited from class org.junit.runners.ParentRunner
filter, getDescription, getTestClass, run, setScheduler, sort
 
Methods inherited from class org.junit.runner.Runner
testCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Theories

public Theories(Class<?> klass)
         throws InitializationError
Throws:
InitializationError
Method Detail

methodBlock

public Statement methodBlock(FrameworkMethod method)
Description copied from class: BlockJUnit4ClassRunner
Returns a Statement that, when executed, either returns normally if method passes, or throws an exception if method fails. Here is an outline of the default implementation: This can be overridden in subclasses, either by overriding this method, or the implementations creating each sub-statement.