org.nuiton.wikitty.services
Class WikittyServiceCachedTest

java.lang.Object
  extended by org.nuiton.wikitty.WikittyClientAbstractTest
      extended by org.nuiton.wikitty.WikittyClientTest
          extended by org.nuiton.wikitty.services.WikittyServiceCachedTest

public class WikittyServiceCachedTest
extends WikittyClientTest

Re passe les tests du wikitty client en ajoutant une couche de de cache dans les services.

Version:
$Revision: 1376 $ Last update: $Date: 2012-01-26 17:39:21 +0100 (jeu, 26 jan 2012) $ by : $Author: echatellier $
Author:
poussin

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.WikittyClientTest
assign, testExportCSV, testExportXml, testFieldConstraint, testFindAllByLabel, testFindByQueryMaker, testFindByQueryMakerMuliple, testFindByQueryMakerNoneFound, testFindQueryOnMovies, testFindQueryParser, testFindQueryParserMuliple, testI18n, testImportClients, testImportCSVBooks, testImportCSVBooksLinks, testImportTwice, testImportXml, testPaginedSearchSelect, testQueryMakerAnd, testQueryMakerBw, testQueryMakerContainsAll, testQueryMakerContainsOne, testQueryMakerEq, testQueryMakerEqFqf, testQueryMakerEqOnGroup, testQueryMakerFacetOnGroup, testQueryMakerFalse, testQueryMakerGt, testQueryMakerIdeq, testQueryMakerIdneq, testQueryMakerIsNotNull, testQueryMakerIsNull, testQueryMakerKeyword, testQueryMakerLike, testQueryMakerLowerCaseSearch, testQueryMakerLt, testQueryMakerNeq, testQueryMakerNot, testQueryMakerNotew, testQueryMakerNotsw, testQueryMakerOr, testQueryMakerSelect, testQueryMakerSw, testQueryMakerTrue, testQueryMakerUnlike, testQueryMarkerSelect, testQueryMarkerSelectSortAndAggregate, testQueryMarkerWilcardEquals, testQueryParseFalse, testQueryParserAnd, testQueryParserContainsAll, testQueryParserContainsOne, testQueryParserEw, testQueryParserExteq, testQueryParserGe, testQueryParserIdeq, testQueryParserIdneq, testQueryParserIsNotNull, testQueryParserIsNull, testQueryParserKeyword, testQueryParserLe, testQueryParserLike, testQueryParserLowerCaseSearch, testQueryParserNotew, testQueryParserNotsw, testQueryParserOnTree, testQueryParserOr, testQueryParserSelect, testQueryParserUnlike, testQueryParserWilcardEquals, testQueryParseTrue, testReindexWithAttachement, testReindexWithAttachementOrdering, testSearchByExampleFacet, testSearchEngineCountAttachment, testSearchEngineCountAttachmentAfterDeletion, testSearchEngineCountAttachmentFiltered, testSearchEngineCountAttachmentMultipleSameNode, testSearchEngineCountAttachmentNodeMove, testSearchEngineFullTextSearch, testSearchExtensionFacet, testSearchFacetSingleField, testSearchWithAccent, testSearchWithSort1, testSearchWithSort2, testSearchWithSortTestData, testSolrDeleteDocument, testSolrDeleteMoreThan10Documents, testStorageAndClassification, testStorageAndLabel, testStorageBinaryField, testStorageCastTo, testStorageExtensionDelete, testStorageExtensionDeleteUsed, testStorageExtensionMethod, testStorageExtensionRequires, testStorageFindDelete, testStoragePreviouslyDeleted, testStorageRestoreBasics, testStorageRestoreLists, testStorageRestoreNull, testStorageRestoreSingle, testStorageVersionForce, testStoreUnmodifiedEntity
 
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

WikittyServiceCachedTest

public WikittyServiceCachedTest()
Method Detail

getWikittyClient

protected org.nuiton.wikitty.WikittyClient getWikittyClient()
Override to method in sub tests to change wikitty client implementation.

Overrides:
getWikittyClient in class WikittyClientAbstractTest
Returns:
wikitty client implementation to use in current test case instance

testCache

public void testCache()
               throws Exception
Test

Throws:
Exception

testCacheRestore

public void testCacheRestore()
                      throws IOException
Setting a field value doesn't corrupt cache.

Throws:
IOException

testCacheRestoreMultipleIds

public void testCacheRestoreMultipleIds()
                                 throws IOException
Same as testCacheRestore() using methods that restore multiple ids.

Throws:
IOException

testRestoreNoCopyPolicy

public void testRestoreNoCopyPolicy()
Test que deux restore consecutif retourne la même instance (cache).



Copyright © 2009-2012 CodeLutin. All Rights Reserved.