Clean up warnings

This commit is contained in:
Sam Brannen 2016-03-26 01:08:58 +01:00
parent 4836d06704
commit 2353f39ee4
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -134,12 +134,12 @@ public class JmsListenerAnnotationBeanPostProcessorTests {
}
@Test
@SuppressWarnings("resource")
public void invalidProxy() {
thrown.expect(BeanCreationException.class);
thrown.expectCause(is(instanceOf(IllegalStateException.class)));
thrown.expectMessage("handleIt2");
new AnnotationConfigApplicationContext(
Config.class, ProxyConfig.class, InvalidProxyTestBean.class);
new AnnotationConfigApplicationContext(Config.class, ProxyConfig.class, InvalidProxyTestBean.class);
}