View Javadoc

1   /**
2    * 2009, Digitalis Informatica. All rights reserved. Distribuicao e Gestao de Informatica, Lda. Estrada de Paco de Arcos
3    * num.9 - Piso -1 2780-666 Paco de Arcos Telefone: (351) 21 4408990 Fax: (351) 21 4408999 http://www.digitalis.pt
4    */
5   
6   package pt.digitalis.dif.sanitycheck.exceptions;
7   
8   import java.lang.reflect.Method;
9   
10  /**
11   * @author Pedro Viegas <a href="mailto:pviegas@digitalis.pt">pviegas@digitalis.pt</a><br/>
12   * @created 15 de Jul de 2011
13   */
14  public class WrongTestMethodSignature extends SanityCheckException {
15  
16      /**  */
17      private static final long serialVersionUID = -7189355421375629096L;
18  
19      /**
20       * @param theMethod
21       */
22      public WrongTestMethodSignature(Method theMethod)
23      {
24          super("The method \"" + theMethod.getDeclaringClass().getSimpleName() + "." + theMethod.getName()
25                  + "\" must return a TestResult object and can only have a IDIFContext parameter, or no parameters!");
26      }
27  
28  }