#31 - Move away from deprecated assertion methods in Spring 5.

We now consistently use Assert.notNull(…) et al that take an error message as the overload without a message have been deprecated in Spring 5.

Added build profile for Spring 5 releases and snapshots.
This commit is contained in:
Oliver Gierke
2017-01-31 10:48:22 +01:00
parent 66eaf45b17
commit 2abef3aafc
4 changed files with 44 additions and 14 deletions

View File

@@ -39,8 +39,7 @@ public class BeanListFactoryBeanUnitTest {
BeanListFactoryBean<Ordered> factory;
@Mock
ApplicationContext context;
@Mock ApplicationContext context;
@Before
public void setUp() {
@@ -52,6 +51,7 @@ public class BeanListFactoryBeanUnitTest {
}
@Test
@SuppressWarnings({ "rawtypes", "unchecked" })
public void regardsOrderOfBeans() throws Exception {
// They shall be switched in the result.