Fix unit test

This commit is contained in:
jamesagnew 2014-08-25 21:53:21 -04:00
parent 2cad32aa08
commit e6d6ec88b2
2 changed files with 1 additions and 1242 deletions

View File

@ -533,7 +533,7 @@ public class RestfulServer extends HttpServlet {
for (Annotation annotation : nextParamAnnotations) {
Package pack = annotation.annotationType().getPackage();
if (pack.equals(IdParam.class.getPackage())) {
if (!allowableParams.contains(annotation)) {
if (!allowableParams.contains(annotation.annotationType())) {
throw new ConfigurationException("Method[" + m.toString() + "] is not allowed to have a parameter annotated with "+ annotation);
}
}