org.junit.experimental.test.theories
Class TheoriesTest

java.lang.Object
  extended by org.junit.experimental.test.theories.TheoriesTest

public class TheoriesTest
extends java.lang.Object


Nested Class Summary
static class TheoriesTest.AssumptionsFail
           
static class TheoriesTest.DoesntUseParams
           
static class TheoriesTest.HasATheory
           
static class TheoriesTest.HasATwoParameterTheory
           
static class TheoriesTest.HonorExpectedException
           
static class TheoriesTest.HonorTimeout
           
static class TheoriesTest.NullsOK
           
static class TheoriesTest.ParameterAnnotations
           
static class TheoriesTest.ShouldFilterNull
           
 
Field Summary
static int FIVE
           
static int INDEPENDENCE
           
static org.hamcrest.Matcher<java.lang.Integer> IS_ONE
           
static java.lang.String J
           
static org.hamcrest.Matcher<java.lang.Integer> NOT_ZERO
           
static java.lang.String NULL_STRING
           
static int ONE
           
static java.lang.String SPACE
           
static int THREE
           
static int ZERO
           
 
Constructor Summary
TheoriesTest()
           
 
Method Summary
 void canRunTheories()
           
 void canRunTwoParameterTheories()
           
 void honorExpected()
           
 void honorTimeout()
           
 void nullsUsedUnlessProhibited()
           
 void reportBadParams()
           
 void shouldFilterNull()
           
 void showFailedAssumptionsWhenNoParametersFound(int data, org.hamcrest.Matcher<java.lang.Integer> matcher)
           
 void testedOnLimitsParameters()
           
 void theoryAnnotationsAreRetained()
           
 void theoryClassMethodsShowUp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPACE

public static java.lang.String SPACE

J

public static java.lang.String J

NULL_STRING

public static java.lang.String NULL_STRING

ZERO

public static int ZERO

ONE

public static int ONE

THREE

public static int THREE

FIVE

public static int FIVE

INDEPENDENCE

public static int INDEPENDENCE

NOT_ZERO

public static org.hamcrest.Matcher<java.lang.Integer> NOT_ZERO

IS_ONE

public static org.hamcrest.Matcher<java.lang.Integer> IS_ONE
Constructor Detail

TheoriesTest

public TheoriesTest()
Method Detail

theoryClassMethodsShowUp

public void theoryClassMethodsShowUp()
                              throws java.lang.Exception
Throws:
java.lang.Exception

theoryAnnotationsAreRetained

public void theoryAnnotationsAreRetained()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

canRunTheories

public void canRunTheories()
                    throws java.lang.Exception
Throws:
java.lang.Exception

canRunTwoParameterTheories

public void canRunTwoParameterTheories()
                                throws java.lang.Exception
Throws:
java.lang.Exception

reportBadParams

public void reportBadParams()
                     throws java.lang.Exception
Throws:
java.lang.Exception

nullsUsedUnlessProhibited

public void nullsUsedUnlessProhibited()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testedOnLimitsParameters

public void testedOnLimitsParameters()
                              throws java.lang.Exception
Throws:
java.lang.Exception

honorExpected

public void honorExpected()
                   throws java.lang.Exception
Throws:
java.lang.Exception

honorTimeout

public void honorTimeout()
                  throws java.lang.Exception
Throws:
java.lang.Exception

showFailedAssumptionsWhenNoParametersFound

public void showFailedAssumptionsWhenNoParametersFound(int data,
                                                       org.hamcrest.Matcher<java.lang.Integer> matcher)
                                                throws java.lang.Exception
Throws:
java.lang.Exception

shouldFilterNull

public void shouldFilterNull()