Added missing imports.

Added additional annotation to test interface to make sure no ClassCastException appears.

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3423 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Oliver Gierke 2010-06-15 05:29:48 +00:00
parent ccc01a9583
commit d3de491ea1
1 changed files with 7 additions and 1 deletions

View File

@ -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);
}
}