BAEL-10959 All tests were connecting to live couchbase instance, hence renamed to *LiveTest
This commit is contained in:
parent
2634bdc250
commit
e4f65cbadc
|
@ -12,7 +12,7 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
|
|||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { MultiBucketCouchbaseConfig.class, MultiBucketIntegrationTestConfig.class })
|
||||
@TestExecutionListeners(listeners = { DependencyInjectionTestExecutionListener.class })
|
||||
public class SpringContextIntegrationTest {
|
||||
public class SpringContextLiveTest {
|
||||
|
||||
@Test
|
||||
public void whenSpringContextIsBootstrapped_thenNoExceptions() {
|
|
@ -3,7 +3,7 @@ package org.baeldung.spring.data.couchbase.service;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
|
||||
public class PersonRepositoryServiceIntegrationTest extends PersonServiceIntegrationTest {
|
||||
public class PersonRepositoryServiceLiveTest extends PersonServiceLiveTest {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("PersonRepositoryService")
|
|
@ -20,7 +20,7 @@ import com.couchbase.client.java.CouchbaseCluster;
|
|||
import com.couchbase.client.java.document.JsonDocument;
|
||||
import com.couchbase.client.java.document.json.JsonObject;
|
||||
|
||||
public abstract class PersonServiceIntegrationTest extends IntegrationTest {
|
||||
public abstract class PersonServiceLiveTest extends IntegrationTest {
|
||||
|
||||
static final String typeField = "_class";
|
||||
static final String john = "John";
|
|
@ -3,7 +3,7 @@ package org.baeldung.spring.data.couchbase.service;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
|
||||
public class PersonTemplateServiceIntegrationTest extends PersonServiceIntegrationTest {
|
||||
public class PersonTemplateServiceLiveTest extends PersonServiceLiveTest {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("PersonTemplateService")
|
|
@ -3,7 +3,7 @@ package org.baeldung.spring.data.couchbase.service;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
|
||||
public class StudentRepositoryServiceIntegrationTest extends StudentServiceIntegrationTest {
|
||||
public class StudentRepositoryServiceLiveTest extends StudentServiceLiveTest {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("StudentRepositoryService")
|
|
@ -22,7 +22,7 @@ import com.couchbase.client.java.CouchbaseCluster;
|
|||
import com.couchbase.client.java.document.JsonDocument;
|
||||
import com.couchbase.client.java.document.json.JsonObject;
|
||||
|
||||
public abstract class StudentServiceIntegrationTest extends IntegrationTest {
|
||||
public abstract class StudentServiceLiveTest extends IntegrationTest {
|
||||
|
||||
static final String typeField = "_class";
|
||||
static final String joe = "Joe";
|
|
@ -3,7 +3,7 @@ package org.baeldung.spring.data.couchbase.service;
|
|||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Qualifier;
|
||||
|
||||
public class StudentTemplateServiceIntegrationTest extends StudentServiceIntegrationTest {
|
||||
public class StudentTemplateServiceLiveTest extends StudentServiceLiveTest {
|
||||
|
||||
@Autowired
|
||||
@Qualifier("StudentTemplateService")
|
|
@ -9,6 +9,6 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
|
|||
@RunWith(SpringJUnit4ClassRunner.class)
|
||||
@ContextConfiguration(classes = { MultiBucketCouchbaseConfig.class, MultiBucketIntegrationTestConfig.class })
|
||||
@TestExecutionListeners(listeners = { DependencyInjectionTestExecutionListener.class })
|
||||
public abstract class MultiBucketIntegrationTest {
|
||||
public abstract class MultiBucketLiveTest {
|
||||
|
||||
}
|
|
@ -10,7 +10,7 @@ import java.util.Set;
|
|||
import javax.annotation.PostConstruct;
|
||||
|
||||
import org.baeldung.spring.data.couchbase.model.Campus;
|
||||
import org.baeldung.spring.data.couchbase2b.MultiBucketIntegrationTest;
|
||||
import org.baeldung.spring.data.couchbase2b.MultiBucketLiveTest;
|
||||
import org.baeldung.spring.data.couchbase2b.repos.CampusRepository;
|
||||
import org.junit.Test;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -18,7 +18,7 @@ import org.springframework.data.geo.Distance;
|
|||
import org.springframework.data.geo.Metrics;
|
||||
import org.springframework.data.geo.Point;
|
||||
|
||||
public class CampusServiceImplIntegrationTest extends MultiBucketIntegrationTest {
|
||||
public class CampusServiceImplLiveTest extends MultiBucketLiveTest {
|
||||
|
||||
@Autowired
|
||||
private CampusServiceImpl campusService;
|
|
@ -9,7 +9,7 @@ import java.util.List;
|
|||
|
||||
import org.baeldung.spring.data.couchbase.model.Person;
|
||||
import org.baeldung.spring.data.couchbase2b.MultiBucketCouchbaseConfig;
|
||||
import org.baeldung.spring.data.couchbase2b.MultiBucketIntegrationTest;
|
||||
import org.baeldung.spring.data.couchbase2b.MultiBucketLiveTest;
|
||||
import org.joda.time.DateTime;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
@ -21,7 +21,7 @@ import com.couchbase.client.java.CouchbaseCluster;
|
|||
import com.couchbase.client.java.document.JsonDocument;
|
||||
import com.couchbase.client.java.document.json.JsonObject;
|
||||
|
||||
public class PersonServiceImplIntegrationTest extends MultiBucketIntegrationTest {
|
||||
public class PersonServiceImplLiveTest extends MultiBucketLiveTest {
|
||||
|
||||
static final String typeField = "_class";
|
||||
static final String john = "John";
|
|
@ -11,7 +11,7 @@ import javax.validation.ConstraintViolationException;
|
|||
|
||||
import org.baeldung.spring.data.couchbase.model.Student;
|
||||
import org.baeldung.spring.data.couchbase2b.MultiBucketCouchbaseConfig;
|
||||
import org.baeldung.spring.data.couchbase2b.MultiBucketIntegrationTest;
|
||||
import org.baeldung.spring.data.couchbase2b.MultiBucketLiveTest;
|
||||
import org.joda.time.DateTime;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
@ -23,7 +23,7 @@ import com.couchbase.client.java.CouchbaseCluster;
|
|||
import com.couchbase.client.java.document.JsonDocument;
|
||||
import com.couchbase.client.java.document.json.JsonObject;
|
||||
|
||||
public class StudentServiceImplIntegrationTest extends MultiBucketIntegrationTest {
|
||||
public class StudentServiceImplLiveTest extends MultiBucketLiveTest {
|
||||
|
||||
static final String typeField = "_class";
|
||||
static final String joe = "Joe";
|
Loading…
Reference in New Issue