Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
junit5
Browse files Browse the repository at this point in the history
  • Loading branch information
l3r8yJ committed Aug 15, 2023
1 parent 6b07387 commit cbbd100
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/test/java/it/CassandraIntegration.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

package it;

import org.junit.AfterClass;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.testcontainers.containers.CassandraContainer;
import org.testcontainers.utility.DockerImageName;
Expand All @@ -49,7 +49,7 @@ static void beforeAll() {
CassandraIntegration.CASSANDRA.getHost();
}

@AfterClass
@AfterAll
public static void tearDown() {
CassandraIntegration.CASSANDRA.stop();
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/it/CassandraRunsIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ final class CassandraRunsIT extends CassandraIntegration {
void runs() {
MatcherAssert.assertThat(
"Cassandra runs",
CASSANDRA.isRunning(),
CassandraIntegration.CASSANDRA.isRunning(),
new IsEqual<>(true)
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/it/SimpleIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
final class SimpleIT extends CassandraIntegration {

@Test
void connectsSession() throws Exception {
void connectsSession() {
final Session session = new Simple(
CassandraIntegration.HOST,
CASSANDRA.getMappedPort(9042)
CassandraIntegration.CASSANDRA.getMappedPort(9042)
).value();
MatcherAssert.assertThat(
"Session is not null",
Expand Down

0 comments on commit cbbd100

Please sign in to comment.