From 897aab9f59dc7df8e71623bf0b1389e9e2f8e346 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 15 Jun 2010 05:29:48 +0000 Subject: [PATCH] Added missing imports. Added additional annotation to test interface to make sure no ClassCastException appears. --- .../core/annotation/AnnotationUtilsTests.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/org.springframework.core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java b/org.springframework.core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java index 9276f0e3f9..d1f0ead0a4 100644 --- a/org.springframework.core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java +++ b/org.springframework.core/src/test/java/org/springframework/core/annotation/AnnotationUtilsTests.java @@ -19,13 +19,18 @@ package org.springframework.core.annotation; 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 @@ -364,7 +369,8 @@ public class AnnotationUtilsTests { 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); } }