|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.WikittyClientAbstractTest
org.nuiton.wikitty.WikittyClientTest
org.nuiton.wikitty.services.WikittyServiceCachedTest
public class WikittyServiceCachedTest
Re passe les tests du wikitty client en ajoutant une couche de de cache dans les services.
| Field Summary |
|---|
| Fields inherited from class org.nuiton.wikitty.WikittyClientAbstractTest |
|---|
df, MEDIA_EXTENSION, MEDIA_EXTENSION_NAME, MOVIE_EXTENSION, MOVIE_EXTENSION_NAME, wikittyClient, wikittyConfig |
| Constructor Summary | |
|---|---|
WikittyServiceCachedTest()
|
|
| Method Summary | |
|---|---|
protected org.nuiton.wikitty.WikittyClient |
getWikittyClient()
Override to method in sub tests to change wikitty client implementation. |
void |
testCache()
Test |
void |
testCacheRestore()
Setting a field value doesn't corrupt cache. |
void |
testCacheRestoreMultipleIds()
Same as testCacheRestore() using methods that restore multiple ids. |
void |
testRestoreNoCopyPolicy()
Test que deux restore consecutif retourne la même instance (cache). |
| Methods inherited from class org.nuiton.wikitty.WikittyClientAbstractTest |
|---|
addTestDataInClient, assumeTrueSearchEngineCanRunTest, importBooks, importClients, setUpConfig, setUpTestData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WikittyServiceCachedTest()
| Method Detail |
|---|
protected org.nuiton.wikitty.WikittyClient getWikittyClient()
getWikittyClient in class WikittyClientAbstractTest
public void testCache()
throws Exception
Exception
public void testCacheRestore()
throws IOException
IOException
public void testCacheRestoreMultipleIds()
throws IOException
IOExceptionpublic void testRestoreNoCopyPolicy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||