From 52c5b822df97d821cdae5dd6540f2c617c7781da Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Thu, 10 May 2018 15:38:41 -0400 Subject: [PATCH] INT-4422: Fix FTP Pool tests --- .../integration/ftp/session/SessionFactoryTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/session/SessionFactoryTests.java b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/session/SessionFactoryTests.java index 43453b8854..afc941e7b6 100644 --- a/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/session/SessionFactoryTests.java +++ b/spring-integration-ftp/src/test/java/org/springframework/integration/ftp/session/SessionFactoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2016 the original author or authors. + * Copyright 2002-2018 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. @@ -39,7 +39,7 @@ import org.springframework.integration.file.remote.session.CachingSessionFactory import org.springframework.integration.file.remote.session.Session; import org.springframework.integration.file.remote.session.SessionFactory; import org.springframework.integration.test.util.TestUtils; -import org.springframework.messaging.MessagingException; +import org.springframework.integration.util.PoolItemNotAvailableException; /** * @author Oleg Zhurakousky @@ -163,7 +163,7 @@ public class SessionFactoryTests { Mockito.verify(sessionFactory, Mockito.times(2)).getSession(); } - @Test (expected = MessagingException.class) // timeout expire + @Test (expected = PoolItemNotAvailableException.class) // timeout expire public void testSessionWaitExpire() throws Exception { SessionFactory sessionFactory = Mockito.mock(SessionFactory.class); Session session = Mockito.mock(Session.class);