public abstract class CacheTest extends WervalTest
Assert that a Cache Plugin and the @Cached
annotation work as expected.
Extends in your Cache Plugin implementations to test it easily.
Modifier and Type | Class and Description |
---|---|
static class |
CacheTest.Controller
Controller.
|
HttpBuildersSPI.RequestBuilder
HttpBuilders.CookieBuilder
Constructor and Description |
---|
CacheTest() |
Modifier and Type | Method and Description |
---|---|
void |
cachedControllerMethod() |
void |
getOptional() |
void |
getOrSetDefault() |
void |
getOrSetDefaultTimeToLive() |
void |
getOrSetDefaultTimeToZero() |
void |
hasSetHasGetRemoveHas() |
void |
removeAbsent() |
protected io.werval.runtime.routes.RoutesProvider |
routesProvider()
Override to provide your own routes.
|
void |
setTimeToLive() |
void |
setTimeToLiveZero() |
afterEachTestMethod, application, beforeEachTestMethod, configurationResourceName, newCookieBuilder, newRequestBuilder
protected io.werval.runtime.routes.RoutesProvider routesProvider()
WervalTest
routesProvider
in class
WervalTest
public void cachedControllerMethod()
public void hasSetHasGetRemoveHas()
public void getOptional()
public void getOrSetDefault()
public void setTimeToLive() throws InterruptedException
InterruptedException
public void getOrSetDefaultTimeToLive() throws InterruptedException
InterruptedException
public void setTimeToLiveZero() throws InterruptedException
InterruptedException
public void getOrSetDefaultTimeToZero() throws InterruptedException
InterruptedException
public void removeAbsent()