DATACOUCH-19 - Polished test setup in preparation for CI setup.
Renamed *Test to *Tests. Reduced connection timeout. Added logback.xml to reduce logging output.
This commit is contained in:
@@ -41,7 +41,7 @@ import static org.junit.Assert.assertEquals;
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = TestApplicationConfig.class)
|
||||
@TestExecutionListeners(BucketCreationListener.class)
|
||||
public class CouchbaseCacheManagerTest {
|
||||
public class CouchbaseCacheManagerTests {
|
||||
|
||||
/**
|
||||
* Contains a reference to the actual CouchbaseClient.
|
||||
@@ -41,7 +41,7 @@ import static org.junit.Assert.*;
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = TestApplicationConfig.class)
|
||||
@TestExecutionListeners(BucketCreationListener.class)
|
||||
public class CouchbaseCacheTest {
|
||||
public class CouchbaseCacheTests {
|
||||
|
||||
/**
|
||||
* Contains a reference to the actual CouchbaseClient.
|
||||
@@ -43,7 +43,7 @@ import static org.junit.Assert.assertTrue;
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = TestApplicationConfig.class)
|
||||
@TestExecutionListeners(BucketCreationListener.class)
|
||||
public class AbstractCouchbaseConfigurationTest {
|
||||
public class AbstractCouchbaseConfigurationTests {
|
||||
|
||||
/**
|
||||
* Contains a reference to the actual CouchbaseClient.
|
||||
@@ -29,7 +29,7 @@ import static org.junit.Assert.assertEquals;
|
||||
/**
|
||||
* @author Michael Nitschinger
|
||||
*/
|
||||
public class CouchbaseParserIntegrationTest {
|
||||
public class CouchbaseParserIntegrationTests {
|
||||
|
||||
DefaultListableBeanFactory factory;
|
||||
BeanDefinitionReader reader;
|
||||
@@ -29,7 +29,7 @@ import static org.junit.Assert.assertEquals;
|
||||
/**
|
||||
* @author Michael Nitschinger
|
||||
*/
|
||||
public class CouchbaseTemplateParserIntegrationTest {
|
||||
public class CouchbaseTemplateParserIntegrationTests {
|
||||
|
||||
DefaultListableBeanFactory factory;
|
||||
BeanDefinitionReader reader;
|
||||
@@ -43,7 +43,7 @@ import static org.junit.Assert.*;
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = TestApplicationConfig.class)
|
||||
@TestExecutionListeners({BucketCreationListener.class, CouchbaseTemplateViewListener.class})
|
||||
public class CouchbaseTemplateTest {
|
||||
public class CouchbaseTemplateTests {
|
||||
|
||||
private CouchbaseClient client;
|
||||
|
||||
@@ -32,7 +32,7 @@ import static org.junit.Assert.assertEquals;
|
||||
*
|
||||
* @author Michael Nitschinger
|
||||
*/
|
||||
public class BasicCouchbasePersistentPropertyTest {
|
||||
public class BasicCouchbasePersistentPropertyTests {
|
||||
|
||||
/**
|
||||
* Holds the entity to test against (contains the properties).
|
||||
@@ -35,7 +35,7 @@ import static org.junit.Assert.*;
|
||||
*/
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = TestApplicationConfig.class)
|
||||
public class MappingCouchbaseConverterTest {
|
||||
public class MappingCouchbaseConverterTests {
|
||||
|
||||
@Autowired
|
||||
private MappingCouchbaseConverter converter;
|
||||
@@ -39,7 +39,7 @@ import static org.junit.Assert.assertFalse;
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = TestApplicationConfig.class)
|
||||
@TestExecutionListeners(BucketCreationListener.class)
|
||||
public class ClientInfoTest {
|
||||
public class ClientInfoTests {
|
||||
|
||||
/**
|
||||
* Contains a reference to the actual CouchbaseClient.
|
||||
@@ -38,7 +38,7 @@ import static junit.framework.Assert.assertTrue;
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = TestApplicationConfig.class)
|
||||
@TestExecutionListeners(BucketCreationListener.class)
|
||||
public class ClusterInfoTest {
|
||||
public class ClusterInfoTests {
|
||||
|
||||
/**
|
||||
* Contains a reference to the actual CouchbaseClient.
|
||||
@@ -43,7 +43,7 @@ import static org.junit.Assert.*;
|
||||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = TestApplicationConfig.class)
|
||||
@TestExecutionListeners({BucketCreationListener.class, CouchbaseRepositoryViewListener.class})
|
||||
public class SimpleCouchbaseRepositoryTest {
|
||||
public class SimpleCouchbaseRepositoryTests {
|
||||
|
||||
private CouchbaseClient client;
|
||||
|
||||
@@ -36,8 +36,8 @@ import java.util.Map.Entry;
|
||||
*/
|
||||
public class BucketManager extends SpyObject {
|
||||
|
||||
private static final long TIMEOUT = 120000;
|
||||
private static final long SLEEP_TIME = 2000;
|
||||
private static final long TIMEOUT = 2000;
|
||||
private static final long SLEEP_TIME = 1000;
|
||||
|
||||
private final ClusterManager manager;
|
||||
|
||||
|
||||
18
src/test/resources/logback.xml
Normal file
18
src/test/resources/logback.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d %5p %40.40c:%4L - %m%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!--
|
||||
<logger name="org.springframework.data" level="debug" />
|
||||
-->
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
</configuration>
|
||||
Reference in New Issue
Block a user