Upgrade to SIK-3.0
* Fix Kafka Java DSL sample from bean name conflict * Fix usage of deprecated `org.springframework.integration.test.util.SocketUtils`
This commit is contained in:
@@ -37,7 +37,7 @@ import org.subethamail.wiser.WiserMessage;
|
||||
import org.springframework.core.io.ByteArrayResource;
|
||||
import org.springframework.integration.samples.mailattachments.support.EmailFragment;
|
||||
import org.springframework.integration.samples.mailattachments.support.EmailParserUtils;
|
||||
import org.springframework.integration.test.util.SocketUtils;
|
||||
import org.springframework.util.SocketUtils;
|
||||
import org.springframework.mail.MailParseException;
|
||||
import org.springframework.mail.javamail.JavaMailSenderImpl;
|
||||
import org.springframework.mail.javamail.MimeMessageHelper;
|
||||
@@ -47,6 +47,8 @@ import org.springframework.mail.javamail.MimeMessageHelper;
|
||||
*
|
||||
* @author Gunnar Hillert
|
||||
* @author Gary Russell
|
||||
* @author Artem Bilan
|
||||
*
|
||||
* @since 2.2
|
||||
*/
|
||||
public class MimeMessageParsingTest {
|
||||
@@ -60,7 +62,7 @@ public class MimeMessageParsingTest {
|
||||
@Before
|
||||
public void startWiser() {
|
||||
|
||||
this.wiserPort = SocketUtils.findAvailableServerSocket(2500);
|
||||
this.wiserPort = SocketUtils.findAvailableTcpPort(2500);
|
||||
|
||||
wiser = new Wiser();
|
||||
wiser.setPort(this.wiserPort);
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.apache.commons.logging.LogFactory;
|
||||
|
||||
import org.springframework.context.support.GenericApplicationContext;
|
||||
import org.springframework.core.env.MapPropertySource;
|
||||
import org.springframework.integration.test.util.SocketUtils;
|
||||
import org.springframework.util.SocketUtils;
|
||||
import org.springframework.test.context.MergedContextConfiguration;
|
||||
import org.springframework.test.context.support.GenericXmlContextLoader;
|
||||
|
||||
@@ -31,6 +31,7 @@ import org.springframework.test.context.support.GenericXmlContextLoader;
|
||||
*
|
||||
* @author Gunnar Hillert
|
||||
* @author Gary Russell
|
||||
* @author Artem Bilan
|
||||
*
|
||||
*/
|
||||
public class CustomTestContextLoader extends GenericXmlContextLoader {
|
||||
@@ -41,7 +42,7 @@ public class CustomTestContextLoader extends GenericXmlContextLoader {
|
||||
protected void loadBeanDefinitions(GenericApplicationContext context,
|
||||
MergedContextConfiguration mergedConfig) {
|
||||
|
||||
int availableServerSocket = SocketUtils.findAvailableServerSocket(5678);
|
||||
int availableServerSocket = SocketUtils.findAvailableTcpPort(5678);
|
||||
|
||||
final Map<String, Object> sockets = new HashMap<String, Object>();
|
||||
sockets.put("availableServerSocket", availableServerSocket);
|
||||
|
||||
Reference in New Issue
Block a user