JAVA-9448: Rename Cassandra tests to *LiveTest (#11696)
This commit is contained in:
parent
7885aa927f
commit
e29186f270
|
@ -19,10 +19,11 @@ import java.util.UUID;
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
// This live test needs a running Docker instance so that a Cassandra container can be created
|
||||||
|
|
||||||
@Testcontainers
|
@Testcontainers
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
class CassandraNestedIntegrationTest {
|
class CassandraNestedLiveTest {
|
||||||
|
|
||||||
private static final String KEYSPACE_NAME = "test";
|
private static final String KEYSPACE_NAME = "test";
|
||||||
|
|
|
@ -2,26 +2,20 @@ package org.baeldung.springcassandra;
|
||||||
|
|
||||||
import com.datastax.driver.core.Cluster;
|
import com.datastax.driver.core.Cluster;
|
||||||
import com.datastax.driver.core.Session;
|
import com.datastax.driver.core.Session;
|
||||||
import com.datastax.driver.core.utils.UUIDs;
|
|
||||||
import org.baeldung.springcassandra.model.Car;
|
|
||||||
import org.baeldung.springcassandra.repository.CarRepository;
|
|
||||||
import org.junit.jupiter.api.BeforeAll;
|
import org.junit.jupiter.api.BeforeAll;
|
||||||
import org.junit.jupiter.api.Nested;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
import org.testcontainers.containers.CassandraContainer;
|
import org.testcontainers.containers.CassandraContainer;
|
||||||
import org.testcontainers.junit.jupiter.Container;
|
import org.testcontainers.junit.jupiter.Container;
|
||||||
import org.testcontainers.junit.jupiter.Testcontainers;
|
import org.testcontainers.junit.jupiter.Testcontainers;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
|
// This live test needs a running Docker instance so that a Cassandra container can be created
|
||||||
|
|
||||||
@Testcontainers
|
@Testcontainers
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
class CassandraSimpleIntegrationTest {
|
class CassandraSimpleLiveTest {
|
||||||
|
|
||||||
private static final String KEYSPACE_NAME = "test";
|
private static final String KEYSPACE_NAME = "test";
|
||||||
|
|
Loading…
Reference in New Issue