Replaces Redis as RabbitMQ for test binder.

resolves spring-cloud/spring-cloud-task#134
This commit is contained in:
Glenn Renfro
2016-05-06 09:26:39 -04:00
committed by Michael Minella
parent 7d74e05509
commit ef1c027146
16 changed files with 31 additions and 57 deletions

View File

@@ -46,7 +46,7 @@
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-redis</artifactId>
<artifactId>spring-cloud-starter-stream-rabbit</artifactId>
<scope>compile</scope>
</dependency>
<dependency>

View File

@@ -30,14 +30,14 @@ import org.springframework.boot.test.OutputCapture;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.cloud.stream.annotation.StreamListener;
import org.springframework.cloud.stream.messaging.Sink;
import org.springframework.cloud.stream.test.junit.redis.RedisTestSupport;
import org.springframework.cloud.stream.test.junit.rabbit.RabbitTestSupport;
import org.springframework.cloud.task.batch.listener.support.JobExecutionEvent;
import org.springframework.context.annotation.PropertySource;
public class BatchEventsApplicationTests {
@ClassRule
public static RedisTestSupport redisTestSupport = new RedisTestSupport();
public static RabbitTestSupport rabbitTestSupport = new RabbitTestSupport();
@Rule
public OutputCapture outputCapture = new OutputCapture();

View File

@@ -30,4 +30,4 @@ $ java -jar <PATH_TO_LOG_SINK_JAR>/log-sink-1.0.0.BUILD-SNAPSHOT-exec.jar --serv
== Dependencies:
The task processor requires an instance of Redis to be running.
The task processor requires an instance of RabbitMQ to be running.

View File

@@ -38,14 +38,9 @@
<artifactId>spring-cloud-task-stream</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-redis</artifactId>
<artifactId>spring-cloud-starter-stream-rabbit</artifactId>
<scope>compile</scope>
</dependency>

View File

@@ -39,4 +39,4 @@ $ ./mvnw clean install
== Dependencies:
The task processor requires an instance of Redis to be running.
The task processor requires an instance of RabbitMQ to be running.

View File

@@ -38,13 +38,9 @@
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-redis</artifactId>
<artifactId>spring-cloud-starter-stream-rabbit</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>

View File

@@ -16,4 +16,4 @@ $ ./mvnw clean install
== Dependencies:
The task processor requires an instance of Redis to be running.
The task processor requires an instance of RabbitMQ to be running.

View File

@@ -37,14 +37,9 @@
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-binder-redis</artifactId>
<artifactId>spring-cloud-starter-stream-rabbit</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-stream-test-support</artifactId>