public abstract class AbstractTestCache extends Object
Modifier and Type | Field and Description |
---|---|
protected MockitoComponentManager |
componentManager
The Mockito tool.
|
protected static String |
KEY
The first key.
|
protected static String |
KEY2
The second key.
|
protected String |
roleHint
The role hint of the cache component implementation to test.
|
protected static String |
VALUE
The value of the first key.
|
protected static int |
VALUE2
The value of the second key.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractTestCache(String roleHint) |
Modifier and Type | Method and Description |
---|---|
void |
before()
Before.
|
CacheFactory |
getCacheFactory() |
protected static final String KEY
protected static final String KEY2
protected static final String VALUE
protected static final int VALUE2
@InjectComponentManager protected MockitoComponentManager componentManager
protected String roleHint
protected AbstractTestCache(String roleHint)
roleHint
- the role hint of the cache component implementation to test.@BeforeEach public void before() throws Exception
Exception
- when initialization failpublic CacheFactory getCacheFactory() throws Exception
Exception
- error when searching for cache factory component.Copyright © 2004–2021 XWiki. All rights reserved.