Skip to content

Commit 6ac7997

Browse files
Fixing build warning
1 parent 2e9c533 commit 6ac7997

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

sdk/cosmos/azure-cosmos-encryption/src/test/java/com/azure/cosmos/encryption/TestSuiteBase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ public void afterClassSetupLeakDetection() {
284284
}
285285

286286
@BeforeSuite(groups = {"fast", "long", "direct", "multi-master", "encryption"}, timeOut = SUITE_SETUP_TIMEOUT)
287-
public static void beforeSuite() {
287+
public void beforeSuite() {
288288

289289
logger.info("beforeSuite Started");
290290

@@ -318,14 +318,14 @@ public static void beforeSuite() {
318318
}
319319

320320
@BeforeSuite(groups = {"unit"})
321-
public static void parallelizeUnitTests(ITestContext context) {
321+
public void parallelizeUnitTests(ITestContext context) {
322322
// TODO: Parallelization was disabled due to flaky tests. Re-enable after fixing the flaky tests.
323323
// context.getSuite().getXmlSuite().setParallel(XmlSuite.ParallelMode.CLASSES);
324324
// context.getSuite().getXmlSuite().setThreadCount(Runtime.getRuntime().availableProcessors());
325325
}
326326

327327
@AfterSuite(groups = {"fast", "long", "direct", "multi-master", "encryption"}, timeOut = SUITE_SHUTDOWN_TIMEOUT)
328-
public static void afterSuite() {
328+
public void afterSuite() {
329329

330330
logger.info("afterSuite Started");
331331

sdk/cosmos/azure-cosmos-kafka-connect/pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ Licensed under the MIT License.
3232
<name>Confluent</name>
3333
<url>https://packages.confluent.io/maven/</url>
3434
</repository>
35+
<repository>
36+
<id>maven-repo1</id>
37+
<name>Maven Repo1</name>
38+
<url>https://repo1.maven.org/maven2/</url>
39+
</repository>
3540
</repositories>
3641

3742
<scm>

sdk/cosmos/azure-cosmos-kafka-connect/src/test/java/com/azure/cosmos/kafka/connect/KafkaCosmosIntegrationTestSuiteBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ public class KafkaCosmosIntegrationTestSuiteBase extends KafkaCosmosTestSuiteBas
3939
protected static KafkaCosmosConnectContainer kafkaCosmosConnectContainer;
4040

4141
@BeforeSuite(groups = { "kafka-integration" }, timeOut = 10 * SUITE_SETUP_TIMEOUT)
42-
public static void beforeIntegrationSuite() throws IOException, InterruptedException {
42+
public void beforeIntegrationSuite() throws IOException, InterruptedException {
4343

4444
logger.info("beforeIntegrationSuite Started");
4545
// initialize the kafka, kafka-connect containers
4646
setupDockerContainers();
4747
}
4848

4949
@AfterSuite(groups = { "kafka-integration" }, timeOut = 10 * SUITE_SETUP_TIMEOUT)
50-
public static void afterIntegrationSuite() {
50+
public void afterIntegrationSuite() {
5151

5252
logger.info("afterIntegrationSuite Started");
5353
// The TestContainers library will automatically clean up resources by using Ryuk sidecar container

sdk/cosmos/azure-cosmos-kafka-connect/src/test/java/com/azure/cosmos/kafka/connect/KafkaCosmosTestSuiteBase.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ protected static CosmosContainerProperties getSinglePartitionContainer(CosmosAsy
9090
}
9191

9292
@BeforeSuite(groups = { "kafka", "kafka-integration" }, timeOut = SUITE_SETUP_TIMEOUT)
93-
public static void beforeSuite() {
93+
public void beforeSuite() {
9494

9595
logger.info("beforeSuite Started");
9696
try (CosmosAsyncClient houseKeepingClient = createGatewayHouseKeepingDocumentClient(true).buildAsyncClient()) {
@@ -122,7 +122,7 @@ public static void beforeSuite() {
122122
}
123123

124124
@BeforeSuite(groups = { "kafka-emulator" }, timeOut = SUITE_SETUP_TIMEOUT)
125-
public static void beforeSuite_emulator() {
125+
public void beforeSuite_emulator() {
126126

127127
logger.info("beforeSuite Started");
128128
try (CosmosAsyncClient houseKeepingClient = createGatewayHouseKeepingDocumentClient(true).buildAsyncClient()) {
@@ -154,7 +154,7 @@ public static void beforeSuite_emulator() {
154154
}
155155

156156
@BeforeSuite(groups = { "unit" }, timeOut = SUITE_SETUP_TIMEOUT)
157-
public static void beforeSuite_unit() {
157+
public void beforeSuite_unit() {
158158
logger.info("beforeSuite for unit tests started");
159159

160160
databaseName =
@@ -166,7 +166,7 @@ public static void beforeSuite_unit() {
166166
}
167167

168168
@AfterSuite(groups = { "kafka", "kafka-integration", "kafka-emulator" }, timeOut = SUITE_SHUTDOWN_TIMEOUT)
169-
public static void afterSuite() {
169+
public void afterSuite() {
170170

171171
logger.info("afterSuite Started");
172172

sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/implementation/TestSuiteBase.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public void afterClassSetupLeakDetection() {
204204

205205
@BeforeSuite(groups = {"fast", "long", "direct", "multi-region", "multi-master", "flaky-multi-master", "emulator",
206206
"split", "query", "cfp-split", "long-emulator"}, timeOut = SUITE_SETUP_TIMEOUT)
207-
public static void beforeSuite() {
207+
public void beforeSuite() {
208208
logger.info("beforeSuite Started");
209209
AsyncDocumentClient houseKeepingClient = createGatewayHouseKeepingDocumentClient().build();
210210
try {
@@ -221,15 +221,15 @@ public static void beforeSuite() {
221221
}
222222

223223
@BeforeSuite(groups = {"unit"})
224-
public static void parallelizeUnitTests(ITestContext context) {
224+
public void parallelizeUnitTests(ITestContext context) {
225225
// TODO: Parallelization was disabled due to flaky tests. Re-enable after fixing the flaky tests.
226226
// context.getSuite().getXmlSuite().setParallel(XmlSuite.ParallelMode.CLASSES);
227227
// context.getSuite().getXmlSuite().setThreadCount(Runtime.getRuntime().availableProcessors());
228228
}
229229

230230
@AfterSuite(groups = {"fast", "long", "direct", "multi-region", "multi-master", "flaky-multi-master", "emulator",
231231
"split", "query", "cfp-split", "long-emulator"}, timeOut = SUITE_SHUTDOWN_TIMEOUT)
232-
public static void afterSuite() {
232+
public void afterSuite() {
233233
logger.info("afterSuite Started");
234234
AsyncDocumentClient houseKeepingClient = createGatewayHouseKeepingDocumentClient().build();
235235
try {

sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/rx/TestSuiteBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public void beforeSuite() {
286286
}
287287

288288
@BeforeSuite(groups = {"unit"})
289-
public static void parallelizeUnitTests(ITestContext context) {
289+
public void parallelizeUnitTests(ITestContext context) {
290290
// TODO: Parallelization was disabled due to flaky tests. Re-enable after fixing the flaky tests.
291291
// context.getSuite().getXmlSuite().setParallel(XmlSuite.ParallelMode.CLASSES);
292292
// context.getSuite().getXmlSuite().setThreadCount(Runtime.getRuntime().availableProcessors());

0 commit comments

Comments
 (0)