Skip to content
Snippets Groups Projects

Add tests for Quarter exists and remove unneccessary code

2 files
+ 24
11
Compare changes
  • Side-by-side
  • Inline

Files

package nl.tudelft.ewi.tam.services;
import nl.tudelft.ewi.tam.annotations.AuthenticatedUser;
import nl.tudelft.ewi.tam.beans.Role;
import nl.tudelft.ewi.tam.beans.User;
import org.springframework.context.annotation.Profile;
@@ -23,16 +22,6 @@ public class DevAnnotationResolver extends AnnotationResolver {
/**
* {@inheritDoc}
* <p>
* This resolver only supports the AuthenticatedUser annotation.
*/
@Override
public boolean supportsParameter(final MethodParameter parameter) {
return AnnotationResolver.findMethodAnnotation(AuthenticatedUser.class, parameter) != null;
}
/**
* {@inheritDoc}
* <p>
* Resolve the argument for the AuthenticatedUser annotation, returning an admin User object.
*/
@Override
Loading