Add useJUnitPlatform for all modules
* Enable Gradle test-support for all samples. * "Fix" for coverage failure org.springframework.integration.samples.barrier.ApplicationTests#contextLoads(); AmqpConnectException: java.net.ConnectException: Connection refused ~ inspired by ".. we generally use a JUnit @Rule to skip the test if the broker's not available." - Gary Russell @see https://stackoverflow.com/a/38747559 * Temporarily disabled Gradle test-support for file-split-ftp & tcp-client-server-multiplex, in-order to allow for successful Gradle check task execution. * Temporarily disabled remaining failing coverage, in-order to support continous integration going forward @see https://github.com/spring-projects/spring-integration-samples/pull/335#discussion_r1072371788 Co-authored-by: Daniel Hammer <daniel.hammer+oss@gmail.com>
This commit is contained in:
@@ -22,6 +22,7 @@ import java.util.Collections;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.amqp.rabbit.junit.RabbitAvailable;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.integration.channel.AbstractMessageChannel;
|
||||
@@ -37,6 +38,7 @@ import org.springframework.messaging.support.GenericMessage;
|
||||
* @since 4.2
|
||||
*/
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE, classes = Application.class)
|
||||
@RabbitAvailable
|
||||
public class ApplicationTests {
|
||||
|
||||
@Autowired
|
||||
|
||||
@@ -1,12 +1,21 @@
|
||||
SFTP Sample
|
||||
===========
|
||||
|
||||
# Overview
|
||||
This example demonstrates the following aspects of the SFTP support available with Spring Integration:
|
||||
|
||||
1. SFTP Inbound Channel Adapter (transfers files from remote to local directory)
|
||||
2. SFTP Outbound Channel Adapter (transfers files from local to the remote directory)
|
||||
|
||||
In order to run this sample for the 'real' SFTP Server you need to:
|
||||
## How to Run the Sample
|
||||
|
||||
If you imported the example into your IDE, you can just run samples from **org.springframework.integration.samples.sftp**.
|
||||
|
||||
Alternatively, you can execute all the samples from the command line:
|
||||
|
||||
>$ ./gradlew :sftp:check
|
||||
|
||||
## In order to run this sample for the 'real' SFTP Server you need to:
|
||||
|
||||
1. generate private/public keys. Below is simple directions what needs to be done
|
||||
2. update user.properties file with appropriate values
|
||||
|
||||
Reference in New Issue
Block a user