#341 - Reduced log output for build execution.

Make sure test that previously used @SpringBootApplication now use @SpringBootTest to properly initialize Boot's default logging configuration.

Added explicit logback.xml to make sure tests running without Boot don't use debug logging by default.
This commit is contained in:
Oliver Gierke
2018-02-22 11:42:02 +01:00
parent d854c6d084
commit 9c2164ece6
6 changed files with 23 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ import org.junit.ClassRule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.geo.Circle;
import org.springframework.data.geo.Distance;
import org.springframework.data.geo.GeoResults;
@@ -43,7 +43,7 @@ import org.springframework.test.context.junit4.SpringRunner;
* @author Mark Paluch
*/
@RunWith(SpringRunner.class)
@SpringBootApplication
@SpringBootTest
public class GeoOperationsTests {
// we only want to run this tests when redis is up an running

View File

@@ -26,7 +26,7 @@ import org.junit.ClassRule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.Cursor;
@@ -41,7 +41,7 @@ import org.springframework.test.context.junit4.SpringRunner;
* @author Christoph Strobl
*/
@RunWith(SpringRunner.class)
@SpringBootApplication
@SpringBootTest
public class KeyOperationsTests {
// we only want to run this tests when redis is up an running