22
33import com .datastax .oss .driver .api .core .CqlSession ;
44import com .datastax .oss .driver .api .core .cql .ResultSet ;
5- import org .junit .Test ;
5+ import org .junit .jupiter . api . Test ;
66import org .testcontainers .containers .Container ;
77import org .testcontainers .utility .DockerImageName ;
88import org .testcontainers .utility .MountableFile ;
3535import static org .assertj .core .api .Assertions .assertThat ;
3636import static org .assertj .core .api .Assertions .assertThatThrownBy ;
3737
38- public class ScyllaDBContainerTest {
38+ class ScyllaDBContainerTest {
3939
4040 private static final DockerImageName SCYLLADB_IMAGE = DockerImageName .parse ("scylladb/scylla:6.2" );
4141
4242 private static final String BASIC_QUERY = "SELECT release_version FROM system.local" ;
4343
4444 @ Test
45- public void testSimple () {
45+ void testSimple () {
4646 try ( // container {
4747 ScyllaDBContainer scylladb = new ScyllaDBContainer ("scylladb/scylla:6.2" )
4848 // }
@@ -63,7 +63,7 @@ public void testSimple() {
6363 }
6464
6565 @ Test
66- public void testSimpleSsl ()
66+ void testSimpleSsl ()
6767 throws NoSuchAlgorithmException , KeyStoreException , IOException , CertificateException , UnrecoverableKeyException , KeyManagementException {
6868 try (
6969 // customConfiguration {
@@ -121,7 +121,7 @@ public void testSimpleSsl()
121121 }
122122
123123 @ Test
124- public void testSimpleSslCqlsh () throws IllegalStateException , InterruptedException , IOException {
124+ void testSimpleSslCqlsh () throws IllegalStateException , InterruptedException , IOException {
125125 try (
126126 ScyllaDBContainer scylladb = new ScyllaDBContainer (SCYLLADB_IMAGE )
127127 .withConfigurationOverride ("scylla-test-ssl" )
@@ -144,7 +144,7 @@ public void testSimpleSslCqlsh() throws IllegalStateException, InterruptedExcept
144144 }
145145
146146 @ Test
147- public void testShardAwareness () {
147+ void testShardAwareness () {
148148 try (ScyllaDBContainer scylladb = new ScyllaDBContainer (SCYLLADB_IMAGE )) {
149149 scylladb .start ();
150150 // shardAwarenessSession {
@@ -161,7 +161,7 @@ public void testShardAwareness() {
161161 }
162162
163163 @ Test
164- public void testAlternator () {
164+ void testAlternator () {
165165 try ( // alternator {
166166 ScyllaDBContainer scylladb = new ScyllaDBContainer (SCYLLADB_IMAGE ).withAlternator ()
167167 // }
@@ -192,7 +192,7 @@ public void testAlternator() {
192192 }
193193
194194 @ Test
195- public void throwExceptionWhenAlternatorDisabled () {
195+ void throwExceptionWhenAlternatorDisabled () {
196196 try (ScyllaDBContainer scylladb = new ScyllaDBContainer (SCYLLADB_IMAGE )) {
197197 scylladb .start ();
198198 assertThatThrownBy (scylladb ::getAlternatorEndpoint )
0 commit comments