From 68051ec72b2e37dd0376fc84b2e0bced95237a5e Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Sat, 28 Mar 2009 22:29:28 +0000 Subject: [PATCH] Updated BeanMethodTests to reflect change from IllegalArgumentException -> IllegalStateException --- .../context/annotation/BeanMethodTests.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/org.springframework.context/src/test/java/org/springframework/context/annotation/BeanMethodTests.java b/org.springframework.context/src/test/java/org/springframework/context/annotation/BeanMethodTests.java index 1894b151049..ff8a761bef5 100644 --- a/org.springframework.context/src/test/java/org/springframework/context/annotation/BeanMethodTests.java +++ b/org.springframework.context/src/test/java/org/springframework/context/annotation/BeanMethodTests.java @@ -28,11 +28,6 @@ import org.springframework.beans.factory.parsing.BeanDefinitionParsingException; import org.springframework.beans.factory.parsing.FailFastProblemReporter; import org.springframework.beans.factory.parsing.Location; import org.springframework.beans.factory.parsing.ProblemReporter; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.BeanMethod; -import org.springframework.context.annotation.ConfigurationClass; -import org.springframework.context.annotation.ModelClass; -import org.springframework.context.annotation.Scope; import org.springframework.core.io.ClassPathResource; import org.springframework.util.ClassUtils; @@ -63,8 +58,8 @@ public class BeanMethodTests { assertThat(beanMethod.getRequiredAnnotation(Bean.class), sameInstance(beanAnno)); try { beanMethod.getRequiredAnnotation(Override.class); - fail("expected IllegalArgumentException ex"); - } catch (IllegalArgumentException ex) { /* expected */ } + fail("expected IllegalStateException ex"); + } catch (IllegalStateException ex) { /* expected */ } // must call setDeclaringClass() before calling getLocation() try {