Skip to content

Commit 15e914b

Browse files
committed
Remove Bamboo mentioning from the tests
1 parent 4d08e11 commit 15e914b

File tree

6 files changed

+7
-29
lines changed

6 files changed

+7
-29
lines changed

spring-integration-core/src/test/java/org/springframework/integration/endpoint/ReactiveMessageSourceProducerTests.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020-2022 the original author or authors.
2+
* Copyright 2020-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -23,7 +23,6 @@
2323
import java.util.stream.IntStream;
2424

2525
import org.junit.jupiter.api.Test;
26-
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
2726
import reactor.core.publisher.Flux;
2827
import reactor.test.StepVerifier;
2928

@@ -46,8 +45,6 @@
4645
public class ReactiveMessageSourceProducerTests {
4746

4847
@Test
49-
@DisabledIfEnvironmentVariable(named = "bamboo_buildKey", matches = ".*?",
50-
disabledReason = "Timing is too short for CI")
5148
void testReactiveMessageSourceProducing() {
5249
LinkedBlockingQueue<Integer> queue =
5350
IntStream.range(0, 10)

spring-integration-core/src/test/java/org/springframework/integration/handler/DelayHandlerTests.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import org.junit.jupiter.api.AfterEach;
3030
import org.junit.jupiter.api.BeforeEach;
3131
import org.junit.jupiter.api.Test;
32-
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
3332
import org.mockito.Mockito;
3433

3534
import org.springframework.beans.DirectFieldAccessor;
@@ -416,8 +415,6 @@ public void defaultErrorChannelAndHandlerThrowsExceptionWithDelay() {
416415
}
417416

418417
@Test
419-
@DisabledIfEnvironmentVariable(named = "bamboo_buildKey", matches = ".*?",
420-
disabledReason = "Timing is too short for CI")
421418
public void testReschedulePersistedMessagesOnStartup() throws Exception {
422419
MessageGroupStore messageGroupStore = new SimpleMessageStore();
423420
this.delayHandler.setDefaultDelay(2000);

spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/connection/TcpNioConnectionTests.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import org.apache.commons.logging.LogFactory;
5454
import org.junit.jupiter.api.Test;
5555
import org.junit.jupiter.api.TestInfo;
56-
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
5756
import org.mockito.Mockito;
5857
import org.mockito.invocation.InvocationOnMock;
5958
import org.mockito.stubbing.Answer;
@@ -71,7 +70,6 @@
7170
import org.springframework.integration.ip.util.TestingUtilities;
7271
import org.springframework.integration.support.MessageBuilder;
7372
import org.springframework.integration.support.converter.MapMessageConverter;
74-
import org.springframework.integration.test.condition.LogLevels;
7573
import org.springframework.integration.test.util.TestUtils;
7674
import org.springframework.integration.util.CompositeExecutor;
7775
import org.springframework.messaging.Message;
@@ -101,7 +99,6 @@
10199
* @since 2.0
102100
*
103101
*/
104-
@LogLevels(level = "trace", categories = "org.springframework.integration.ip.tcp")
105102
public class TcpNioConnectionTests {
106103

107104
private static final Log logger = LogFactory.getLog(TcpNioConnectionTests.class);
@@ -245,8 +242,6 @@ public void testMemoryLeak(TestInfo testInfo) throws Exception {
245242
}
246243

247244
@Test
248-
@DisabledIfEnvironmentVariable(named = "bamboo_buildKey", matches = ".*?",
249-
disabledReason = "Timing is too short for CI")
250245
public void testCleanup() {
251246
TcpNioClientConnectionFactory factory = new TcpNioClientConnectionFactory("localhost", 0);
252247
factory.setApplicationEventPublisher(nullPublisher);
@@ -809,8 +804,6 @@ public Void answer(InvocationOnMock invocation) throws Throwable {
809804
}
810805

811806
@Test
812-
@DisabledIfEnvironmentVariable(named = "bamboo_buildKey", matches = ".*?",
813-
disabledReason = "Timing is too short for CI")
814807
public void testNoDelayOnClose() throws Exception {
815808
TcpNioServerConnectionFactory cf = new TcpNioServerConnectionFactory(0);
816809
final CountDownLatch reading = new CountDownLatch(1);

spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/mysql/MySqlJdbcMessageStoreTests.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,7 +28,6 @@
2828
import org.junit.jupiter.api.AfterEach;
2929
import org.junit.jupiter.api.BeforeEach;
3030
import org.junit.jupiter.api.Test;
31-
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
3231

3332
import org.springframework.beans.factory.annotation.Autowired;
3433
import org.springframework.beans.factory.annotation.Value;
@@ -324,8 +323,6 @@ public void testOrderInMessageGroup() throws Exception {
324323

325324
@Test
326325
@Transactional
327-
@DisabledIfEnvironmentVariable(named = "bamboo_buildKey", matches = ".*?",
328-
disabledReason = "Timing is too short for CI")
329326
public void testExpireMessageGroupOnCreateOnly() throws Exception {
330327
String groupId = "X";
331328
Message<String> message = MessageBuilder.withPayload("foo").setCorrelationId(groupId).build();
@@ -345,8 +342,6 @@ public void testExpireMessageGroupOnCreateOnly() throws Exception {
345342

346343
@Test
347344
@Transactional
348-
@DisabledIfEnvironmentVariable(named = "bamboo_buildKey", matches = ".*?",
349-
disabledReason = "Timing is too short for CI")
350345
public void testExpireMessageGroupOnIdleOnly() throws Exception {
351346
String groupId = "X";
352347
Message<String> message = MessageBuilder.withPayload("foo").setCorrelationId(groupId).build();

spring-integration-jdbc/src/test/java/org/springframework/integration/jdbc/oracle/OracleJdbcMessageStoreTests.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.junit.jupiter.api.AfterEach;
2929
import org.junit.jupiter.api.BeforeEach;
3030
import org.junit.jupiter.api.Test;
31-
import org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable;
3231

3332
import org.springframework.beans.factory.annotation.Autowired;
3433
import org.springframework.context.annotation.Bean;
@@ -321,8 +320,6 @@ public void testOrderInMessageGroup() throws Exception {
321320

322321
@Test
323322
@Transactional
324-
@DisabledIfEnvironmentVariable(named = "bamboo_buildKey", matches = ".*?",
325-
disabledReason = "Timing is too short for CI")
326323
public void testExpireMessageGroupOnCreateOnly() throws Exception {
327324
String groupId = "X";
328325
Message<String> message = MessageBuilder.withPayload("foo").setCorrelationId(groupId).build();
@@ -342,8 +339,6 @@ public void testExpireMessageGroupOnCreateOnly() throws Exception {
342339

343340
@Test
344341
@Transactional
345-
@DisabledIfEnvironmentVariable(named = "bamboo_buildKey", matches = ".*?",
346-
disabledReason = "Timing is too short for CI")
347342
public void testExpireMessageGroupOnIdleOnly() throws Exception {
348343
String groupId = "X";
349344
Message<String> message = MessageBuilder.withPayload("foo").setCorrelationId(groupId).build();

spring-integration-sftp/src/test/java/org/springframework/integration/sftp/session/ResourceKnownHostsServerKeyVerifierTests.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 the original author or authors.
2+
* Copyright 2022-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -43,6 +43,7 @@
4343
import org.springframework.core.io.FileSystemResource;
4444

4545
import static org.assertj.core.api.Assertions.assertThat;
46+
import static org.mockito.Mockito.mock;
4647

4748
/**
4849
*
@@ -76,11 +77,11 @@ void testServerKeys() {
7677
= new ResourceKnownHostsServerKeyVerifier(
7778
new FileSystemResource(KnownHostEntry.getDefaultKnownHostsFile()));
7879

79-
ClientFactoryManager manager = Mockito.mock(ClientFactoryManager.class);
80+
ClientFactoryManager manager = mock();
8081
Mockito.when(manager.getRandomFactory()).thenReturn((Factory) JceRandomFactory.INSTANCE);
8182

8283
HOST_KEYS.forEach((key, value) -> {
83-
ClientSession session = Mockito.mock(ClientSession.class);
84+
ClientSession session = mock();
8485
Mockito.when(session.getFactoryManager()).thenReturn(manager);
8586

8687
Mockito.when(session.getConnectAddress()).thenReturn(key);
@@ -122,7 +123,7 @@ private static Map<SshdSocketAddress, KnownHostEntry> loadEntries(Path file) thr
122123
}
123124

124125
static boolean isDefaultKnownHostsFilePresent() {
125-
return System.getenv("bamboo_buildKey") == null && KnownHostEntry.getDefaultKnownHostsFile().toFile().exists();
126+
return KnownHostEntry.getDefaultKnownHostsFile().toFile().exists();
126127
}
127128

128129
}

0 commit comments

Comments
 (0)