java-21464: rename test classes to LiveTest for Jenkins operation

This commit is contained in:
Ehsan Sasanianno 2023-09-09 14:50:27 +02:00
parent 91ec107665
commit e6495a3ad1
4 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,6 @@
package com.baeldung.datastax.cassandra;
import com.baeldung.cassandra.batch.repository.ProductRepository;
import com.baeldung.datastax.cassandra.domain.Video;
import com.baeldung.datastax.cassandra.repository.KeyspaceRepository;
import com.baeldung.datastax.cassandra.repository.VideoRepository;
@ -30,9 +31,11 @@ public class Application {
keyspaceRepository.useKeyspace("testKeyspace");
VideoRepository videoRepository = new VideoRepository(session);
ProductRepository productRepository = new ProductRepository(session);
videoRepository.createTable();
productRepository.createProductTableByName("testKeyspace");
videoRepository.insertVideo(new Video("Video Title 1", Instant.now()));
videoRepository.insertVideo(new Video("Video Title 2",
Instant.now().minus(1, ChronoUnit.DAYS)));

View File

@ -23,7 +23,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class ProductRepositoryIntegrationTest {
public class ProductRepositoryLiveTest {
@Rule
public CassandraContainer<?> cassandra = new CassandraContainer<>("cassandra:3.11.2");
private KeyspaceRepository schemaRepository;

View File

@ -16,7 +16,7 @@ import java.util.stream.Collectors;
import static org.junit.Assert.*;
public class BookRepositoryIntegrationTest {
public class BookRepositoryLiveTest {
@Rule
public CassandraContainer<?> cassandra = new CassandraContainer<>("cassandra:3.11.2");

View File

@ -16,7 +16,7 @@ import java.util.stream.Collectors;
import static org.junit.Assert.*;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class KeyspaceRepositoryIntegrationTest {
public class KeyspaceRepositoryLiveTest {
@Rule
public CassandraContainer<?> cassandra = new CassandraContainer<>("cassandra:3.11.2");
private KeyspaceRepository schemaRepository;