r1992 - trunk/wao-services/src/test/java/fr/ifremer/wao/services
Author: bleny Date: 2014-06-04 10:12:57 +0200 (Wed, 04 Jun 2014) New Revision: 1992 Url: http://forge.codelutin.com/projects/wao/repository/revisions/1992 Log: fix build Modified: trunk/wao-services/src/test/java/fr/ifremer/wao/services/FakeWaoApplicationContext.java Modified: trunk/wao-services/src/test/java/fr/ifremer/wao/services/FakeWaoApplicationContext.java =================================================================== --- trunk/wao-services/src/test/java/fr/ifremer/wao/services/FakeWaoApplicationContext.java 2014-06-03 17:14:46 UTC (rev 1991) +++ trunk/wao-services/src/test/java/fr/ifremer/wao/services/FakeWaoApplicationContext.java 2014-06-04 08:12:57 UTC (rev 1992) @@ -7,6 +7,8 @@ import fr.ifremer.wao.WaoTechnicalException; import fr.ifremer.wao.WaoTopiaApplicationContext; import fr.ifremer.wao.WaoTopiaPersistenceContext; +import fr.ifremer.wao.services.service.BoatsFilterValues; +import fr.ifremer.wao.services.service.BoatsFilterValuesCacheKey; import fr.ifremer.wao.services.service.InitWaoService; import fr.ifremer.wao.services.service.ObsMerSamplingPlan; import fr.ifremer.wao.services.service.SamplingPlanCacheKey; @@ -46,6 +48,8 @@ protected Cache<SamplingPlanCacheKey, ObsMerSamplingPlan> samplingPlansCache; + protected Cache<BoatsFilterValuesCacheKey, BoatsFilterValues> boatsFilterValuesCache; + public FakeWaoApplicationContext(String context, boolean initWithReferential) { this.context = context; this.initWithReferential = initWithReferential; @@ -210,14 +214,6 @@ } @Override - public Cache<SamplingPlanCacheKey, ObsMerSamplingPlan> getSamplingPlansCache() { - if (samplingPlansCache == null) { - samplingPlansCache = CacheBuilder.newBuilder().build(); - } - return samplingPlansCache; - } - - @Override public WaoTopiaPersistenceContext newPersistenceContext() { WaoTopiaPersistenceContext persistenceContext = getTopiaApplicationContext().newPersistenceContext(); @@ -243,4 +239,19 @@ } } + @Override + public Cache<SamplingPlanCacheKey, ObsMerSamplingPlan> getSamplingPlansCache() { + if (samplingPlansCache == null) { + samplingPlansCache = CacheBuilder.newBuilder().build(); + } + return samplingPlansCache; + } + + @Override + public Cache<BoatsFilterValuesCacheKey, BoatsFilterValues> getBoatsFilterValuesCache() { + if (boatsFilterValuesCache == null) { + boatsFilterValuesCache = CacheBuilder.newBuilder().build(); + } + return boatsFilterValuesCache; + } }
participants (1)
-
bleny@users.forge.codelutin.com