Skip navigation links
A B F I L N O S T 

A

after() - Method in class net.thimmwork.testing.junit4.FlexiScope
 
after() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
override this method to add code that should be called after each test method
afterClass() - Method in class net.thimmwork.testing.junit4.FlexiScope
 
afterClass() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
override this method to add code that should be called before each test class or suite
afterSuite() - Method in class net.thimmwork.testing.junit4.FlexiScope
 
afterSuite() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
override this method to add code that should be called before each test class or suite
apply() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
wraps the executed statement into a new statement that will call the appropriate lifecycle methods

B

before() - Method in class net.thimmwork.testing.junit4.FlexiScope
 
before() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
override this method to add code that should be called before each test method
beforeClass() - Method in class net.thimmwork.testing.junit4.FlexiScope
 
beforeClass() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
override this method to add code that should be called before each test class or suite
beforeSuite() - Method in class net.thimmwork.testing.junit4.FlexiScope
 
beforeSuite() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
override this method to add code that should be called before each test class or suite

F

FlexiScope - Class in net.thimmwork.testing.junit4
This class is designed as a base class for test resources that need to be initialized/teared down once and are required to be executable in both Suite and single test classes, but perform operations that are too expensive to execute before/after every test class. Examples are databases, container orchestration or insertion of large datasets. FlexiScope will detect the scope (suite/class/method) it runs in and call the setUp()/tearDown() methods only once in the corresponding scope. Make sure you use the same instance of your FlexiScope subclass in both your suite and test classes.

I

isClass() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
 
isSuite() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
 

L

LifecycleRule - Interface in net.thimmwork.testing.junit4
This class is designed as a base class for test resources that provides multiple lifecycle hooks that combine JUnit's before/beforeClass and after/ afterClass by leveraging its @ClassRule/@Rule mechanism. Since this class does not hold any state, it is implemented as an interface with default methods. When using beforeSuite/afterSuite, make sure you use the same instance of your LifecycleRule subclass in both your suite and test classes.

N

net.thimmwork.testing.junit4 - package net.thimmwork.testing.junit4
 

O

onMethodFailure() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
override this method to add code that should be called after each failed test method
onMethodSuccess() - Method in interface net.thimmwork.testing.junit4.LifecycleRule
override this method to add code that should be called after each successful completion of a test method

S

setUp() - Method in class net.thimmwork.testing.junit4.FlexiScope
 

T

tearDown() - Method in class net.thimmwork.testing.junit4.FlexiScope
 
A B F I L N O S T 
Skip navigation links