Skip to content

Commit

Permalink
Removed unnecessary test repetitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ozangunalp committed Dec 5, 2023
1 parent 85e8b9a commit e2a37f2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.apache.kafka.common.serialization.StringDeserializer;
import org.eclipse.microprofile.reactive.messaging.Incoming;
import org.eclipse.microprofile.reactive.messaging.Message;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;

import io.smallrye.reactive.messaging.kafka.api.IncomingKafkaRecordMetadata;
Expand All @@ -31,7 +30,7 @@
@SuppressWarnings("rawtypes")
public class MultiTopicsTest extends KafkaCompanionTestBase {

@RepeatedTest(5)
@Test
public void testWithThreeTopicsInConfiguration() {
String topic1 = UUID.randomUUID().toString();
String topic2 = UUID.randomUUID().toString();
Expand Down Expand Up @@ -83,7 +82,7 @@ public void testWithThreeTopicsInConfiguration() {
assertThat(top3.get()).isGreaterThanOrEqualTo(3);
}

@RepeatedTest(5)
@Test
public void testWithOnlyTwoTopicsReceiving() {
String topic1 = UUID.randomUUID().toString();
String topic2 = UUID.randomUUID().toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.eclipse.microprofile.reactive.messaging.Message;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;

import io.smallrye.common.annotation.Identifier;
Expand Down Expand Up @@ -189,7 +188,7 @@ void testThrottledStrategy() {

}

@RepeatedTest(10)
@Test
void testThrottledStrategyWithManyRecords() {
MapBasedConfig config = commonConfiguration()
.with("lazy-client", true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.eclipse.microprofile.reactive.messaging.Message;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;

import io.smallrye.common.annotation.Identifier;
Expand Down Expand Up @@ -225,7 +224,7 @@ void testThrottledStrategy() {

}

@RepeatedTest(10)
@Test
void testThrottledStrategyWithManyRecords() {
MapBasedConfig config = commonConfiguration()
.with("lazy-client", true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.eclipse.microprofile.reactive.messaging.Message;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;

import io.smallrye.reactive.messaging.health.HealthReport;
import io.smallrye.reactive.messaging.kafka.*;
Expand Down Expand Up @@ -47,7 +47,7 @@ void closing() {
vertx.closeAndAwait();
}

@RepeatedTest(10)
@Test
void testRebalance() throws InterruptedException {
String group = UUID.randomUUID().toString();
MapBasedConfig config = commonConfiguration()
Expand Down

0 comments on commit e2a37f2

Please sign in to comment.