BAEL-6910, Renamed to LiveTest

This commit is contained in:
parthiv39731 2023-12-06 18:55:46 +05:30
parent 155389fbc2
commit b6f45db73d
10 changed files with 66 additions and 16 deletions

View File

@ -1,3 +1,8 @@
/**
* These test cases have dependency with docker because they pull the docker images from docker hub
* and run the container. So, please make sure to install docker before running the tests.
* For the image details please look into the docker-compose files under resources/connectiondetails/docker
**/
package com.baeldung.connectiondetails; package com.baeldung.connectiondetails;
import com.baeldung.connectiondetails.configuration.CustomCassandraConnectionDetailsConfiguration; import com.baeldung.connectiondetails.configuration.CustomCassandraConnectionDetailsConfiguration;
@ -22,8 +27,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
@ComponentScan(basePackages = "com.baeldung.connectiondetails") @ComponentScan(basePackages = "com.baeldung.connectiondetails")
@TestPropertySource(locations = {"classpath:connectiondetails/application-cassandra.properties"}) @TestPropertySource(locations = {"classpath:connectiondetails/application-cassandra.properties"})
@ActiveProfiles("cassandra") @ActiveProfiles("cassandra")
public class CassandraConnectionDetailsIntegrationTest { public class CassandraConnectionDetailsLiveTest {
private static final Logger logger = LoggerFactory.getLogger(CassandraConnectionDetailsIntegrationTest.class); private static final Logger logger = LoggerFactory.getLogger(CassandraConnectionDetailsLiveTest.class);
@Autowired @Autowired
private CassandraTemplate cassandraTemplate; private CassandraTemplate cassandraTemplate;
@Test @Test

View File

@ -1,3 +1,8 @@
/**
* These test cases have dependency with docker because they pull the docker images from docker hub
* and run the container. So, please make sure to install docker before running the tests.
* For the image details please look into the docker-compose files under resources/connectiondetails/docker
**/
package com.baeldung.connectiondetails; package com.baeldung.connectiondetails;
import com.baeldung.connectiondetails.configuration.CustomCouchBaseConnectionDetailsConfiguration; import com.baeldung.connectiondetails.configuration.CustomCouchBaseConnectionDetailsConfiguration;
@ -20,7 +25,7 @@ import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
@ComponentScan(basePackages = "com.baeldung.connectiondetails") @ComponentScan(basePackages = "com.baeldung.connectiondetails")
@TestPropertySource(locations = {"classpath:connectiondetails/application-couch.properties"}) @TestPropertySource(locations = {"classpath:connectiondetails/application-couch.properties"})
@ActiveProfiles("couch") @ActiveProfiles("couch")
public class CouchbaseConnectionDetailsIntegrationTest { public class CouchbaseConnectionDetailsLiveTest {
@Autowired @Autowired
private Cluster cluster; private Cluster cluster;
@Test @Test

View File

@ -1,3 +1,8 @@
/**
* These test cases have dependency with docker because they pull the docker images from docker hub
* and run the container. So, please make sure to install docker before running the tests.
* For the image details please look into the docker-compose files under resources/connectiondetails/docker
**/
package com.baeldung.connectiondetails; package com.baeldung.connectiondetails;
import com.baeldung.connectiondetails.configuration.CustomElasticsearchConnectionDetailsConfiguration; import com.baeldung.connectiondetails.configuration.CustomElasticsearchConnectionDetailsConfiguration;
@ -24,8 +29,8 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
@ComponentScan(basePackages = "com.baeldung.connectiondetails") @ComponentScan(basePackages = "com.baeldung.connectiondetails")
@TestPropertySource(locations = {"classpath:connectiondetails/application-elastic.properties"}) @TestPropertySource(locations = {"classpath:connectiondetails/application-elastic.properties"})
@ActiveProfiles("elastic") @ActiveProfiles("elastic")
public class ElasticsearchConnectionDetailsIntegrationTest { public class ElasticsearchConnectionDetailsLiveTest {
private static final Logger logger = LoggerFactory.getLogger(ElasticsearchConnectionDetailsIntegrationTest.class); private static final Logger logger = LoggerFactory.getLogger(ElasticsearchConnectionDetailsLiveTest.class);
@Autowired @Autowired
private ElasticsearchTemplate elasticsearchTemplate; private ElasticsearchTemplate elasticsearchTemplate;

View File

@ -1,3 +1,8 @@
/**
* These test cases have dependency with docker because they pull the docker images from docker hub
* and run the container. So, please make sure to install docker before running the tests.
* For the image details please look into the docker-compose files under resources/connectiondetails/docker
**/
package com.baeldung.connectiondetails; package com.baeldung.connectiondetails;
import com.baeldung.connectiondetails.configuration.JdbcConnectionDetailsConfiguration; import com.baeldung.connectiondetails.configuration.JdbcConnectionDetailsConfiguration;
@ -25,8 +30,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
@ComponentScan(basePackages = "com.baeldung.connectiondetails") @ComponentScan(basePackages = "com.baeldung.connectiondetails")
@TestPropertySource(locations = {"classpath:connectiondetails/application-jdbc.properties"}) @TestPropertySource(locations = {"classpath:connectiondetails/application-jdbc.properties"})
@ActiveProfiles("jdbc") @ActiveProfiles("jdbc")
public class JdbcConnectionDetailsIntegrationTest { public class JdbcConnectionDetailsLiveTest {
private static final Logger logger = LoggerFactory.getLogger(JdbcConnectionDetailsIntegrationTest.class); private static final Logger logger = LoggerFactory.getLogger(JdbcConnectionDetailsLiveTest.class);
@Autowired @Autowired
private JdbcTemplate jdbcTemplate; private JdbcTemplate jdbcTemplate;
@Test @Test

View File

@ -1,3 +1,8 @@
/**
* These test cases have dependency with docker because they pull the docker images from docker hub
* and run the container. So, please make sure to install docker before running the tests.
* For the image details please look into the docker-compose files under resources/connectiondetails/docker
**/
package com.baeldung.connectiondetails; package com.baeldung.connectiondetails;
import com.baeldung.connectiondetails.configuration.CustomKafkaConnectionDetailsConfiguration; import com.baeldung.connectiondetails.configuration.CustomKafkaConnectionDetailsConfiguration;
@ -21,7 +26,7 @@ import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
@ComponentScan(basePackages = "com.baeldung.connectiondetails") @ComponentScan(basePackages = "com.baeldung.connectiondetails")
@TestPropertySource(locations = {"classpath:connectiondetails/application-kafka.properties"}) @TestPropertySource(locations = {"classpath:connectiondetails/application-kafka.properties"})
@ActiveProfiles("kafka") @ActiveProfiles("kafka")
public class KafkaConnectionDetailsIntegrationTest { public class KafkaConnectionDetailsLiveTest {
@Autowired @Autowired
private KafkaTemplate<String, String> kafkaTemplate; private KafkaTemplate<String, String> kafkaTemplate;

View File

@ -1,3 +1,8 @@
/**
* These test cases have dependency with docker because they pull the docker images from docker hub
* and run the container. So, please make sure to install docker before running the tests.
* For the image details please look into the docker-compose files under resources/connectiondetails/docker
**/
package com.baeldung.connectiondetails; package com.baeldung.connectiondetails;
import com.baeldung.connectiondetails.configuration.MongoDBConnectionDetailsConfiguration; import com.baeldung.connectiondetails.configuration.MongoDBConnectionDetailsConfiguration;
@ -26,7 +31,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
@ComponentScan(basePackages = "com.baeldung.connectiondetails") @ComponentScan(basePackages = "com.baeldung.connectiondetails")
@TestPropertySource(locations = {"classpath:connectiondetails/application-mongo.properties"}) @TestPropertySource(locations = {"classpath:connectiondetails/application-mongo.properties"})
@ActiveProfiles("mongo") @ActiveProfiles("mongo")
public class MongoDBConnectionDetailsIntegrationTest { public class MongoDBConnectionDetailsLiveTest {
@Autowired @Autowired
private MongoTemplate mongoTemplate; private MongoTemplate mongoTemplate;

View File

@ -1,3 +1,8 @@
/**
* These test cases have dependency with docker because they pull the docker images from docker hub
* and run the container. So, please make sure to install docker before running the tests.
* For the image details please look into the docker-compose files under resources/connectiondetails/docker
**/
package com.baeldung.connectiondetails; package com.baeldung.connectiondetails;
import com.baeldung.connectiondetails.configuration.CustomNeo4jConnectionDetailsConfiguration; import com.baeldung.connectiondetails.configuration.CustomNeo4jConnectionDetailsConfiguration;
@ -22,7 +27,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
@ComponentScan(basePackages = "com.baeldung.connectiondetails") @ComponentScan(basePackages = "com.baeldung.connectiondetails")
@TestPropertySource(locations = {"classpath:connectiondetails/application-neo4j.properties"}) @TestPropertySource(locations = {"classpath:connectiondetails/application-neo4j.properties"})
@ActiveProfiles("neo4j") @ActiveProfiles("neo4j")
public class Neo4jConnectionDetailsIntegrationTest { public class Neo4jConnectionDetailsLiveTest {
@Autowired @Autowired
private Neo4jTemplate neo4jTemplate; private Neo4jTemplate neo4jTemplate;

View File

@ -1,3 +1,8 @@
/**
* These test cases have dependency with docker because they pull the docker images from docker hub
* and run the container. So, please make sure to install docker before running the tests.
* For the image details please look into the docker-compose files under resources/connectiondetails/docker
**/
package com.baeldung.connectiondetails; package com.baeldung.connectiondetails;
import com.baeldung.connectiondetails.configuration.R2dbcPostgresConnectionDetailsConfiguration; import com.baeldung.connectiondetails.configuration.R2dbcPostgresConnectionDetailsConfiguration;
@ -20,8 +25,8 @@ import java.util.List;
@Import(R2dbcPostgresConnectionDetailsConfiguration.class) @Import(R2dbcPostgresConnectionDetailsConfiguration.class)
@TestPropertySource(locations = {"classpath:connectiondetails/application-r2dbc.properties"}) @TestPropertySource(locations = {"classpath:connectiondetails/application-r2dbc.properties"})
@ActiveProfiles("r2dbc") @ActiveProfiles("r2dbc")
public class R2dbcConnectionDetailsIntegrationTest { public class R2dbcConnectionDetailsLiveTest {
Logger logger = LoggerFactory.getLogger(R2dbcConnectionDetailsIntegrationTest.class); Logger logger = LoggerFactory.getLogger(R2dbcConnectionDetailsLiveTest.class);
@Autowired @Autowired
private R2dbcEntityTemplate r2dbcEntityTemplate; private R2dbcEntityTemplate r2dbcEntityTemplate;

View File

@ -1,3 +1,8 @@
/**
* These test cases have dependency with docker because they pull the docker images from docker hub
* and run the container. So, please make sure to install docker before running the tests.
* For the image details please look into the docker-compose files under resources/connectiondetails/docker
**/
package com.baeldung.connectiondetails; package com.baeldung.connectiondetails;
import com.baeldung.connectiondetails.configuration.RabbitMQConnectionDetailsConfiguration; import com.baeldung.connectiondetails.configuration.RabbitMQConnectionDetailsConfiguration;
@ -25,9 +30,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
@Import(RabbitMQConnectionDetailsConfiguration.class) @Import(RabbitMQConnectionDetailsConfiguration.class)
@TestPropertySource(locations = {"classpath:connectiondetails/application-rabbitmq.properties"}) @TestPropertySource(locations = {"classpath:connectiondetails/application-rabbitmq.properties"})
@ActiveProfiles("rabbitmq") @ActiveProfiles("rabbitmq")
public class RabbitmqConnectionDetailsIntegrationTest { public class RabbitmqConnectionDetailsLiveTest {
private static final Logger logger = LoggerFactory.getLogger(RabbitmqConnectionDetailsIntegrationTest.class); private static final Logger logger = LoggerFactory.getLogger(RabbitmqConnectionDetailsLiveTest.class);
@Autowired @Autowired
private RabbitTemplate rabbitTemplate; private RabbitTemplate rabbitTemplate;

View File

@ -1,3 +1,8 @@
/**
* These test cases have dependency with docker because they pull the docker images from docker hub
* and run the container. So, please make sure to install docker before running the tests.
* For the image details please look into the docker-compose files under resources/connectiondetails/docker
**/
package com.baeldung.connectiondetails; package com.baeldung.connectiondetails;
import com.baeldung.connectiondetails.configuration.RedisConnectionDetailsConfiguration; import com.baeldung.connectiondetails.configuration.RedisConnectionDetailsConfiguration;
@ -20,8 +25,8 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
@Import(RedisConnectionDetailsConfiguration.class) @Import(RedisConnectionDetailsConfiguration.class)
@TestPropertySource(locations = {"classpath:connectiondetails/application-redis.properties"}) @TestPropertySource(locations = {"classpath:connectiondetails/application-redis.properties"})
@ActiveProfiles("redis") @ActiveProfiles("redis")
public class RedisCacheConnnectionDetailsIntegrationTest { public class RedisCacheConnnectionDetailsLiveTest {
private static final Logger logger = LoggerFactory.getLogger(RedisCacheConnnectionDetailsIntegrationTest.class); private static final Logger logger = LoggerFactory.getLogger(RedisCacheConnnectionDetailsLiveTest.class);
@Autowired @Autowired
RedisTemplate<String, String> redisTemplate; RedisTemplate<String, String> redisTemplate;