Clover coverage report - Maven Clover report
Coverage timestamp: Wed Sep 2 2009 20:38:15 GMT
file stats: LOC: 52   Methods: 3
NCLOC: 16   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
DefaultManageableSoundCaptchaService.java - 0% 0% 0%
coverage
 1    /*
 2    * JCaptcha, the open source java framework for captcha definition and integration
 3    * Copyright (c) 2007 jcaptcha.net. All Rights Reserved.
 4    * See the LICENSE.txt file distributed with this package.
 5    */
 6   
 7    package com.octo.captcha.service.sound;
 8   
 9    import com.octo.captcha.engine.CaptchaEngine;
 10    import com.octo.captcha.engine.sound.speller.SpellerSoundCaptchaEngine;
 11    import com.octo.captcha.service.captchastore.CaptchaStore;
 12    import com.octo.captcha.service.captchastore.FastHashMapCaptchaStore;
 13   
 14    /**
 15    * <p>Default service implementation : use a {@link FastHashMapCaptchaStore} as captcha store, and a {@link SpellerSoundCaptchaEngine}</p> It is initialized
 16    * with thoses default values : <ul> <li>min guaranted delay : 180s </li> <li>max store size : 100000 captchas </li>
 17    * <li>max store size before garbage collection : 75000 </li> </ul>
 18    *
 19    * @author <a href="mailto:marc.antoine.garrigue@gmail.com">Marc-Antoine Garrigue</a>
 20    * @version $Id: DefaultManageableSoundCaptchaService.java 466 2007-12-27 09:38:03Z antoineveret $
 21    */
 22    public class DefaultManageableSoundCaptchaService extends AbstractManageableSoundCaptchaService implements SoundCaptchaService {
 23   
 24    /**
 25    * Construct a new SoundCaptchaService with a {@link FastHashMapCaptchaStore} and a {@link SpellerSoundCaptchaEngine}
 26    *
 27    * @param minGuarantedStorageDelayInSeconds
 28    *
 29    * @param maxCaptchaStoreSize
 30    * @param captchaStoreLoadBeforeGarbageCollection
 31    *
 32    */
 33  0 public DefaultManageableSoundCaptchaService(int minGuarantedStorageDelayInSeconds, int maxCaptchaStoreSize, int captchaStoreLoadBeforeGarbageCollection) {
 34  0 super(new FastHashMapCaptchaStore(), new SpellerSoundCaptchaEngine(), minGuarantedStorageDelayInSeconds, maxCaptchaStoreSize, captchaStoreLoadBeforeGarbageCollection);
 35    }
 36   
 37   
 38    /**
 39    * Construct a new SoundCaptchaService with a {@link FastHashMapCaptchaStore} and a {@link SpellerSoundCaptchaEngine}
 40    * minGuarantedStorageDelayInSeconds 180s
 41    * maxCaptchaStoreSize 100000
 42    * captchaStoreLoadBeforeGarbageCollection 75000
 43    */
 44  0 public DefaultManageableSoundCaptchaService() {
 45  0 this(180, 100000, 75000);
 46    }
 47   
 48   
 49  0 public DefaultManageableSoundCaptchaService(CaptchaStore captchaStore, CaptchaEngine captchaEngine, int minGuarantedStorageDelayInSeconds, int maxCaptchaStoreSize, int captchaStoreLoadBeforeGarbageCollection) {
 50  0 super(captchaStore, captchaEngine, minGuarantedStorageDelayInSeconds, maxCaptchaStoreSize, captchaStoreLoadBeforeGarbageCollection);
 51    }
 52    }