From 785a0bcf1d53455df3aa9f77a42b5897e37456b9 Mon Sep 17 00:00:00 2001 From: Marius Bogoevici Date: Thu, 25 Aug 2016 14:22:35 -0400 Subject: [PATCH] Remove unused dependencies of spring-cloud-stream-test-support-internal --- .../pom.xml | 48 ++----------------- .../test/junit/redis/RedisTestSupport.java | 45 ----------------- 2 files changed, 4 insertions(+), 89 deletions(-) delete mode 100644 spring-cloud-stream-test-support-internal/src/main/java/org/springframework/cloud/stream/test/junit/redis/RedisTestSupport.java diff --git a/spring-cloud-stream-test-support-internal/pom.xml b/spring-cloud-stream-test-support-internal/pom.xml index 3c921d8e2..40c551887 100644 --- a/spring-cloud-stream-test-support-internal/pom.xml +++ b/spring-cloud-stream-test-support-internal/pom.xml @@ -9,59 +9,19 @@ spring-cloud-stream-test-support-internal Set of classes and utility code that may assist in testing both spring-cloud-stream itself, and also modules. - - 0.8.2.1 - 2.6.0 - junit junit compile + + org.springframework.boot + spring-boot-starter-test + org.springframework.boot spring-boot-starter-logging - - - - org.springframework.boot - spring-boot-starter-redis - true - - - - org.apache.curator - curator-recipes - ${curator.version} - true - - - org.apache.kafka - kafka_2.10 - ${kafka.version} - true - - - org.apache.kafka - kafka_2.10 - test - ${kafka.version} - true - - - org.apache.curator - curator-test - ${curator.version} - true - - - - org.springframework.boot - spring-boot-starter-amqp - true - - diff --git a/spring-cloud-stream-test-support-internal/src/main/java/org/springframework/cloud/stream/test/junit/redis/RedisTestSupport.java b/spring-cloud-stream-test-support-internal/src/main/java/org/springframework/cloud/stream/test/junit/redis/RedisTestSupport.java deleted file mode 100644 index 8aeab0245..000000000 --- a/spring-cloud-stream-test-support-internal/src/main/java/org/springframework/cloud/stream/test/junit/redis/RedisTestSupport.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2015 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.cloud.stream.test.junit.redis; - -import org.springframework.cloud.stream.test.junit.AbstractExternalResourceTestSupport; -import org.springframework.data.redis.connection.jedis.JedisConnectionFactory; - -/** - * JUnit {@link org.junit.Rule} that detects the fact that a Redis server is running on localhost. - * - * @author Gary Russell - * @author Eric Bottard - */ -public class RedisTestSupport extends AbstractExternalResourceTestSupport { - - public RedisTestSupport() { - super("REDIS"); - } - - @Override - protected void obtainResource() throws Exception { - resource = new JedisConnectionFactory(); - resource.afterPropertiesSet(); - resource.getConnection().close(); - } - - @Override - protected void cleanupResource() throws Exception { - resource.destroy(); - } -}