Package com.atlassian.jira.junit.rules

Class Summary
ClearStatics

Clear static variables in JIRA to allow tests separattion

Just add this to your test:

InitMockitoMocks

Initializes Mocktio mocks before the tests.

MockComponentContainer JUnit @Rule that allows for providing mock JIRA components accessed in production code via ComponentAccessor static methods.
MockHttp<R extends HttpServletRequest,S extends HttpServletResponse>

Sets up and tears down automatically the following, static methods used in the JIRA production code for accessing current HTTP objects: ActionContext ExecutingHttpRequest

MockHttp.DefaultMocks  
MockHttp.MockitoMocks  
MockitoMocksInContainer

Factory for a rule that combines mockito initialization with MockComponentContainer.

 

Annotation Types Summary
AvailableInContainer Annotate mocks in your unit test with this annotation to have them available via ComponentAccessor in your unit tests.
 



Copyright © 2002-2013 Atlassian. All Rights Reserved.