View Javadoc

1   package com.octo.captcha.service.captchastore;
2   
3   import java.util.Collection;
4   import java.util.Locale;
5   
6   import com.octo.captcha.Captcha;
7   import com.octo.captcha.service.CaptchaServiceException;
8   
9   public class MockCaptchaStore implements CaptchaStore {
10  	
11  	private boolean isInitCalled = false;
12  
13  	public void cleanAndShutdown() {
14  	}
15  
16  	public void empty() {
17  	}
18  
19  	public Captcha getCaptcha(String id) throws CaptchaServiceException {
20  		return null;
21  	}
22  
23  	public Collection getKeys() {
24  		return null;
25  	}
26  
27  	public Locale getLocale(String id) throws CaptchaServiceException {
28  		return null;
29  	}
30  
31  	public int getSize() {
32  		return 0;
33  	}
34  
35  	public boolean hasCaptcha(String id) {
36  		return false;
37  	}
38  
39  	public void initAndStart() {
40  		isInitCalled = true;
41  	}
42  
43  	public boolean removeCaptcha(String id) {
44  		return false;
45  	}
46  
47  	public void storeCaptcha(String id, Captcha captcha)
48  			throws CaptchaServiceException {
49  
50  	}
51  
52  	public void storeCaptcha(String id, Captcha captcha, Locale locale)
53  			throws CaptchaServiceException {
54  
55  	}
56  
57  	/***
58  	 * @return the isInitCalled
59  	 */
60  	public boolean isInitCalled() {
61  		return isInitCalled;
62  	}
63  
64  }