Class | Description |
---|---|
AttachToDatabase |
Initialises the container pieces you need to attach to a real database when running unit tests.
|
ClearStatics |
Clear static variables in JIRA both before and after the test runs to improve test separation.
|
DatabaseContainer | |
InitMockitoMocks | Deprecated
use
org.mockito.junit.MockitoJUnit#rule() instead |
JiraWebActionSupportDependencies | |
Log4jLogger |
Watches log4j logs.
|
MockComponentContainer |
JUnit
@Rule that allows for providing mock JIRA components accessed in
production code via ComponentAccessor
static methods. |
MockHttp<R extends javax.servlet.http.HttpServletRequest,S extends javax.servlet.http.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 | |
MockitoContainer |
Rule that combines mockito initialization with
MockComponentContainer . |
MockitoMocksInContainer |
Factory for a
MockitoContainer rule |
SetupServletContextProvider |
Place a mock ServletContext in the ServletContextProvider and clean it out afterwads.
|
TimeZoneRule |
Change TimeZones for unit tests
|
Annotation Type | Description |
---|---|
AvailableInContainer |
Annotate mocks in your unit test with this annotation to have them available via
ComponentAccessor in your unit tests. |
Copyright © 2002-2019 Atlassian. All Rights Reserved.