java-21464: rename test classes to LiveTest for Jenkins operation
This commit is contained in:
		
							parent
							
								
									91ec107665
								
							
						
					
					
						commit
						e6495a3ad1
					
				| @ -1,5 +1,6 @@ | |||||||
| package com.baeldung.datastax.cassandra; | package com.baeldung.datastax.cassandra; | ||||||
| 
 | 
 | ||||||
|  | import com.baeldung.cassandra.batch.repository.ProductRepository; | ||||||
| import com.baeldung.datastax.cassandra.domain.Video; | import com.baeldung.datastax.cassandra.domain.Video; | ||||||
| import com.baeldung.datastax.cassandra.repository.KeyspaceRepository; | import com.baeldung.datastax.cassandra.repository.KeyspaceRepository; | ||||||
| import com.baeldung.datastax.cassandra.repository.VideoRepository; | import com.baeldung.datastax.cassandra.repository.VideoRepository; | ||||||
| @ -30,9 +31,11 @@ public class Application { | |||||||
|         keyspaceRepository.useKeyspace("testKeyspace"); |         keyspaceRepository.useKeyspace("testKeyspace"); | ||||||
| 
 | 
 | ||||||
|         VideoRepository videoRepository = new VideoRepository(session); |         VideoRepository videoRepository = new VideoRepository(session); | ||||||
|  |         ProductRepository productRepository = new ProductRepository(session); | ||||||
| 
 | 
 | ||||||
|         videoRepository.createTable(); |         videoRepository.createTable(); | ||||||
| 
 | 
 | ||||||
|  |         productRepository.createProductTableByName("testKeyspace"); | ||||||
|         videoRepository.insertVideo(new Video("Video Title 1", Instant.now())); |         videoRepository.insertVideo(new Video("Video Title 1", Instant.now())); | ||||||
|         videoRepository.insertVideo(new Video("Video Title 2", |         videoRepository.insertVideo(new Video("Video Title 2", | ||||||
|             Instant.now().minus(1, ChronoUnit.DAYS))); |             Instant.now().minus(1, ChronoUnit.DAYS))); | ||||||
|  | |||||||
| @ -23,7 +23,7 @@ import static org.junit.Assert.assertEquals; | |||||||
| import static org.junit.Assert.assertTrue; | import static org.junit.Assert.assertTrue; | ||||||
| 
 | 
 | ||||||
| @FixMethodOrder(MethodSorters.NAME_ASCENDING) | @FixMethodOrder(MethodSorters.NAME_ASCENDING) | ||||||
| public class ProductRepositoryIntegrationTest { | public class ProductRepositoryLiveTest { | ||||||
|     @Rule |     @Rule | ||||||
|     public CassandraContainer<?> cassandra = new CassandraContainer<>("cassandra:3.11.2"); |     public CassandraContainer<?> cassandra = new CassandraContainer<>("cassandra:3.11.2"); | ||||||
|     private KeyspaceRepository schemaRepository; |     private KeyspaceRepository schemaRepository; | ||||||
| @ -16,7 +16,7 @@ import java.util.stream.Collectors; | |||||||
| 
 | 
 | ||||||
| import static org.junit.Assert.*; | import static org.junit.Assert.*; | ||||||
| 
 | 
 | ||||||
| public class BookRepositoryIntegrationTest { | public class BookRepositoryLiveTest { | ||||||
|     @Rule |     @Rule | ||||||
|     public CassandraContainer<?> cassandra = new CassandraContainer<>("cassandra:3.11.2"); |     public CassandraContainer<?> cassandra = new CassandraContainer<>("cassandra:3.11.2"); | ||||||
| 
 | 
 | ||||||
| @ -16,7 +16,7 @@ import java.util.stream.Collectors; | |||||||
| import static org.junit.Assert.*; | import static org.junit.Assert.*; | ||||||
| 
 | 
 | ||||||
| @FixMethodOrder(MethodSorters.NAME_ASCENDING) | @FixMethodOrder(MethodSorters.NAME_ASCENDING) | ||||||
| public class KeyspaceRepositoryIntegrationTest { | public class KeyspaceRepositoryLiveTest { | ||||||
|     @Rule |     @Rule | ||||||
|     public CassandraContainer<?> cassandra = new CassandraContainer<>("cassandra:3.11.2"); |     public CassandraContainer<?> cassandra = new CassandraContainer<>("cassandra:3.11.2"); | ||||||
|     private KeyspaceRepository schemaRepository; |     private KeyspaceRepository schemaRepository; | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user