Skip to content

Commit

Permalink
Added missing imports.
Browse files Browse the repository at this point in the history
Added additional annotation to test interface to make sure no ClassCastException appears.
  • Loading branch information
odrotbohm committed Jun 15, 2010
1 parent a383633 commit 897aab9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@
import static org.junit.Assert.*;
import static org.springframework.core.annotation.AnnotationUtils.*;

import java.io.Serializable;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Method;
import java.util.List;

import org.junit.Test;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.AnnotationUtils.ParameterAnnotation;

/**
* @author Rod Johnson
Expand Down Expand Up @@ -364,7 +369,8 @@ public static interface InterfaceWithAnnotatedMethodParameters {

void foo(String foo, @MyAnnotation("foo") Long bar);

void bar(@MyAnnotation("first") String first, String second, @MyAnnotation("third") Serializable third);
void bar(@MyAnnotation("first") String first, String second,
@Transactional @MyAnnotation("third") Serializable third);
}
}

Expand Down

0 comments on commit 897aab9

Please sign in to comment.