BAEL-10959 All tests were connecting to live couchbase instance, hence renamed to *LiveTest

This commit is contained in:
Dhawal Kapil 2019-02-25 17:58:21 +05:30
parent 2634bdc250
commit e4f65cbadc
11 changed files with 14 additions and 14 deletions

View File

@ -12,7 +12,7 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = { MultiBucketCouchbaseConfig.class, MultiBucketIntegrationTestConfig.class }) @ContextConfiguration(classes = { MultiBucketCouchbaseConfig.class, MultiBucketIntegrationTestConfig.class })
@TestExecutionListeners(listeners = { DependencyInjectionTestExecutionListener.class }) @TestExecutionListeners(listeners = { DependencyInjectionTestExecutionListener.class })
public class SpringContextIntegrationTest { public class SpringContextLiveTest {
@Test @Test
public void whenSpringContextIsBootstrapped_thenNoExceptions() { public void whenSpringContextIsBootstrapped_thenNoExceptions() {

View File

@ -3,7 +3,7 @@ package org.baeldung.spring.data.couchbase.service;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
public class PersonRepositoryServiceIntegrationTest extends PersonServiceIntegrationTest { public class PersonRepositoryServiceLiveTest extends PersonServiceLiveTest {
@Autowired @Autowired
@Qualifier("PersonRepositoryService") @Qualifier("PersonRepositoryService")

View File

@ -20,7 +20,7 @@ import com.couchbase.client.java.CouchbaseCluster;
import com.couchbase.client.java.document.JsonDocument; import com.couchbase.client.java.document.JsonDocument;
import com.couchbase.client.java.document.json.JsonObject; 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 typeField = "_class";
static final String john = "John"; static final String john = "John";

View File

@ -3,7 +3,7 @@ package org.baeldung.spring.data.couchbase.service;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
public class PersonTemplateServiceIntegrationTest extends PersonServiceIntegrationTest { public class PersonTemplateServiceLiveTest extends PersonServiceLiveTest {
@Autowired @Autowired
@Qualifier("PersonTemplateService") @Qualifier("PersonTemplateService")

View File

@ -3,7 +3,7 @@ package org.baeldung.spring.data.couchbase.service;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
public class StudentRepositoryServiceIntegrationTest extends StudentServiceIntegrationTest { public class StudentRepositoryServiceLiveTest extends StudentServiceLiveTest {
@Autowired @Autowired
@Qualifier("StudentRepositoryService") @Qualifier("StudentRepositoryService")

View File

@ -22,7 +22,7 @@ import com.couchbase.client.java.CouchbaseCluster;
import com.couchbase.client.java.document.JsonDocument; import com.couchbase.client.java.document.JsonDocument;
import com.couchbase.client.java.document.json.JsonObject; 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 typeField = "_class";
static final String joe = "Joe"; static final String joe = "Joe";

View File

@ -3,7 +3,7 @@ package org.baeldung.spring.data.couchbase.service;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.beans.factory.annotation.Qualifier;
public class StudentTemplateServiceIntegrationTest extends StudentServiceIntegrationTest { public class StudentTemplateServiceLiveTest extends StudentServiceLiveTest {
@Autowired @Autowired
@Qualifier("StudentTemplateService") @Qualifier("StudentTemplateService")

View File

@ -9,6 +9,6 @@ import org.springframework.test.context.support.DependencyInjectionTestExecution
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = { MultiBucketCouchbaseConfig.class, MultiBucketIntegrationTestConfig.class }) @ContextConfiguration(classes = { MultiBucketCouchbaseConfig.class, MultiBucketIntegrationTestConfig.class })
@TestExecutionListeners(listeners = { DependencyInjectionTestExecutionListener.class }) @TestExecutionListeners(listeners = { DependencyInjectionTestExecutionListener.class })
public abstract class MultiBucketIntegrationTest { public abstract class MultiBucketLiveTest {
} }

View File

@ -10,7 +10,7 @@ import java.util.Set;
import javax.annotation.PostConstruct; import javax.annotation.PostConstruct;
import org.baeldung.spring.data.couchbase.model.Campus; 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.baeldung.spring.data.couchbase2b.repos.CampusRepository;
import org.junit.Test; import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired; 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.Metrics;
import org.springframework.data.geo.Point; import org.springframework.data.geo.Point;
public class CampusServiceImplIntegrationTest extends MultiBucketIntegrationTest { public class CampusServiceImplLiveTest extends MultiBucketLiveTest {
@Autowired @Autowired
private CampusServiceImpl campusService; private CampusServiceImpl campusService;

View File

@ -9,7 +9,7 @@ import java.util.List;
import org.baeldung.spring.data.couchbase.model.Person; import org.baeldung.spring.data.couchbase.model.Person;
import org.baeldung.spring.data.couchbase2b.MultiBucketCouchbaseConfig; 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.joda.time.DateTime;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; 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.JsonDocument;
import com.couchbase.client.java.document.json.JsonObject; 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 typeField = "_class";
static final String john = "John"; static final String john = "John";

View File

@ -11,7 +11,7 @@ import javax.validation.ConstraintViolationException;
import org.baeldung.spring.data.couchbase.model.Student; import org.baeldung.spring.data.couchbase.model.Student;
import org.baeldung.spring.data.couchbase2b.MultiBucketCouchbaseConfig; 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.joda.time.DateTime;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Test; 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.JsonDocument;
import com.couchbase.client.java.document.json.JsonObject; 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 typeField = "_class";
static final String joe = "Joe"; static final String joe = "Joe";