public class TestScope extends Object
SINGLETON
and EAGER_SINGLETON
scopes for
test cases running with the JukitoRunner
. Depends on mockito.
Depends on Mockito.Modifier and Type | Field and Description |
---|---|
static org.jukito.TestScope.Singleton |
EAGER_SINGLETON
Eager test-scoped singleton are similar to test-scoped
SINGLETON
but they get instantiated automatically with each new test. |
static org.jukito.TestScope.Singleton |
SINGLETON
Test-scoped singletons are typically used in test cases for objects that
correspond to singletons in the application.
|
Constructor and Description |
---|
TestScope() |
public static final org.jukito.TestScope.Singleton SINGLETON
JukitoRunner
on its @RunWith
annotation so that
test-scoped singletons are reset before every test case.
If you want your singleton to be instantiated automatically with each new
test, use EAGER_SINGLETON
.public static final org.jukito.TestScope.Singleton EAGER_SINGLETON
SINGLETON
but they get instantiated automatically with each new test.Copyright © 2010-2013 ArcBees Inc.. All Rights Reserved.