View Javadoc
1   /**
2    * 
3    */
4   package org.melati.servlet.test;
5   
6   import org.melati.Melati;
7   import org.melati.MelatiConfig;
8   import org.melati.servlet.ConfigServlet;
9   import org.melati.util.ConfigException;
10  
11  /**
12   * A servlet which throws a MelatiException during configuration.
13   * 
14   * @author timp
15   * @since 05/12/2006
16   */
17  public class MelatiConfigExceptionConfigServlet extends ConfigServlet {
18  
19    /**
20     * Shut eclipse up.
21     */
22    private static final long serialVersionUID = 1L;
23  
24    /**
25     * 
26     */
27    public MelatiConfigExceptionConfigServlet() {
28      super();
29    }
30  
31    /**
32     * @see org.melati.servlet.ConfigServlet#doConfiguredRequest(org.melati.Melati)
33     */
34    protected void doConfiguredRequest(Melati melati)
35        throws Exception {
36  
37    }
38  
39    protected MelatiConfig melatiConfig()  {
40      throw new ConfigException("Pretend bug");
41     }
42  }