From 98431a6d2583886e69a1fa3e722a4936c51aa9aa Mon Sep 17 00:00:00 2001 From: Marius Bogoevici Date: Wed, 4 Jan 2017 09:53:15 -0500 Subject: [PATCH] Remove TestRestTemplate bean definition. Signed-off-by: Marius Bogoevici --- .../schema/server/SchemaRegistryServerAvroTests.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/spring-cloud-stream-schema-server/src/test/java/org/springframework/cloud/stream/schema/server/SchemaRegistryServerAvroTests.java b/spring-cloud-stream-schema-server/src/test/java/org/springframework/cloud/stream/schema/server/SchemaRegistryServerAvroTests.java index 23ff2722a..4198cae42 100644 --- a/spring-cloud-stream-schema-server/src/test/java/org/springframework/cloud/stream/schema/server/SchemaRegistryServerAvroTests.java +++ b/spring-cloud-stream-schema-server/src/test/java/org/springframework/cloud/stream/schema/server/SchemaRegistryServerAvroTests.java @@ -24,11 +24,9 @@ import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.boot.test.context.TestConfiguration; import org.springframework.boot.test.web.client.TestRestTemplate; import org.springframework.cloud.stream.schema.server.config.SchemaServerProperties; import org.springframework.cloud.stream.schema.server.model.Schema; -import org.springframework.context.annotation.Bean; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.HttpStatus; @@ -248,12 +246,4 @@ public class SchemaRegistryServerAvroTests { assertThat(deleteById.getStatusCode()).isEqualTo(HttpStatus.METHOD_NOT_ALLOWED); } - @TestConfiguration - static class Config { - @Bean - public TestRestTemplate testRestTemplate() { - return new TestRestTemplate(); - } - } - }