Skip to content

Commit

Permalink
Mark nested Junit5 tests with @Nested
Browse files Browse the repository at this point in the history
  • Loading branch information
stIncMale committed Oct 23, 2023
1 parent a6cb06e commit 62fedf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@

import org.apache.kafka.common.config.ConfigException;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;

import org.bson.BsonTimestamp;
Expand Down Expand Up @@ -546,7 +547,8 @@ void testHeartbeatTopicName() {
.getString(HEARTBEAT_TOPIC_NAME_CONFIG)));
}

static final class StartupModeTest {
@Nested
final class StartupModeTest {
@Test
void startupMode() {
assertAll(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.apache.kafka.connect.storage.OffsetStorageReader;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;

Expand All @@ -45,7 +46,8 @@
import com.mongodb.kafka.connect.source.statistics.JmxStatisticsManager;

final class StartedMongoSourceTaskTest {
static final class ChangeStreamIterableOptionsTest {
@Nested
final class ChangeStreamIterableOptionsTest {
private final Map<String, String> properties = new HashMap<>();
private StartedMongoSourceTask task;

Expand Down

0 comments on commit 62fedf0

Please sign in to comment.