1
2
3
4
5
6 package pt.digitalis.dif.sanitycheck.exceptions;
7
8 import java.lang.reflect.Method;
9
10
11
12
13
14 public class WrongTestMethodSignature extends SanityCheckException {
15
16
17 private static final long serialVersionUID = -7189355421375629096L;
18
19
20
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 }