mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-27 17:49:02 +00:00
Merge branch '5.1.x'
This commit is contained in:
+9
-1
@@ -72,13 +72,21 @@ public class AnnotationAttributesTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void unresolvableClass() throws Exception {
|
||||
public void unresolvableClassWithClassNotFoundException() throws Exception {
|
||||
attributes.put("unresolvableClass", new ClassNotFoundException("myclass"));
|
||||
assertThatIllegalArgumentException().isThrownBy(() ->
|
||||
attributes.getClass("unresolvableClass"))
|
||||
.withMessageContaining("myclass");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void unresolvableClassWithLinkageError() throws Exception {
|
||||
attributes.put("unresolvableClass", new LinkageError("myclass"));
|
||||
exception.expect(IllegalArgumentException.class);
|
||||
exception.expectMessage(containsString("myclass"));
|
||||
attributes.getClass("unresolvableClass");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void singleElementToSingleElementArrayConversionSupport() throws Exception {
|
||||
Filter filter = FilteredClass.class.getAnnotation(Filter.class);
|
||||
|
||||
Reference in New Issue
Block a user