| Modifier and Type | Class | Description |
|---|---|---|
static class |
CacheAsserts.RequestSet |
Defines a set of data requests.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
assertCachedData(Cache cache,
CacheAsserts.RequestSet requestSet) |
Asserts that the cache contains necessary data for the
requestSet. |
static void |
assertCachedData(Cache cache,
FakeDataSet fakeDataSet) |
Asserts that the cache content is equal to the data in the
fakeDataSet. |
static void |
assertCacheEmpty(Cache cache) |
Asserts that the cache is empty.
|
static void |
assertDataCached(Cache cache,
DataSpec dataSpec,
byte[] expected) |
Asserts that the cache contains the given data for
dataSpec. |
static void |
assertReadData(DataSource dataSource,
DataSpec dataSpec,
byte[] expected) |
Asserts that the read data from
dataSource specified by dataSpec is equal to
expected or not. |
public static void assertCachedData(Cache cache, CacheAsserts.RequestSet requestSet) throws IOException
requestSet.IOException - If an error occurred reading from the Cache.public static void assertCachedData(Cache cache, FakeDataSet fakeDataSet) throws IOException
fakeDataSet.IOException - If an error occurred reading from the Cache.public static void assertDataCached(Cache cache, DataSpec dataSpec, byte[] expected) throws IOException
dataSpec.IOException - If an error occurred reading from the Cache.public static void assertReadData(DataSource dataSource, DataSpec dataSpec, byte[] expected) throws IOException
dataSource specified by dataSpec is equal to
expected or not.IOException - If an error occurred reading from the Cache.public static void assertCacheEmpty(Cache cache)