Commit a039f632 authored by Stephane Nicoll's avatar Stephane Nicoll

Start building against Spring Framework 5.2.4 snapshots

See gh-20240
parent 9b607949
...@@ -72,7 +72,7 @@ class TaskExecutionAutoConfigurationTests { ...@@ -72,7 +72,7 @@ class TaskExecutionAutoConfigurationTests {
assertThat(taskExecutor).hasFieldOrPropertyWithValue("allowCoreThreadTimeOut", true); assertThat(taskExecutor).hasFieldOrPropertyWithValue("allowCoreThreadTimeOut", true);
assertThat(taskExecutor.getKeepAliveSeconds()).isEqualTo(5); assertThat(taskExecutor.getKeepAliveSeconds()).isEqualTo(5);
assertThat(taskExecutor).hasFieldOrPropertyWithValue("waitForTasksToCompleteOnShutdown", true); assertThat(taskExecutor).hasFieldOrPropertyWithValue("waitForTasksToCompleteOnShutdown", true);
assertThat(taskExecutor).hasFieldOrPropertyWithValue("awaitTerminationSeconds", 30); assertThat(taskExecutor).hasFieldOrPropertyWithValue("awaitTerminationMillis", 30000L);
assertThat(taskExecutor.getThreadNamePrefix()).isEqualTo("mytest-"); assertThat(taskExecutor.getThreadNamePrefix()).isEqualTo("mytest-");
})); }));
} }
......
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2020 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -68,7 +68,7 @@ class TaskSchedulingAutoConfigurationTests { ...@@ -68,7 +68,7 @@ class TaskSchedulingAutoConfigurationTests {
TestBean bean = context.getBean(TestBean.class); TestBean bean = context.getBean(TestBean.class);
assertThat(bean.latch.await(30, TimeUnit.SECONDS)).isTrue(); assertThat(bean.latch.await(30, TimeUnit.SECONDS)).isTrue();
assertThat(taskExecutor).hasFieldOrPropertyWithValue("waitForTasksToCompleteOnShutdown", true); assertThat(taskExecutor).hasFieldOrPropertyWithValue("waitForTasksToCompleteOnShutdown", true);
assertThat(taskExecutor).hasFieldOrPropertyWithValue("awaitTerminationSeconds", 30); assertThat(taskExecutor).hasFieldOrPropertyWithValue("awaitTerminationMillis", 30000L);
assertThat(bean.threadNames).allMatch((name) -> name.contains("scheduling-test-")); assertThat(bean.threadNames).allMatch((name) -> name.contains("scheduling-test-"));
}); });
} }
......
...@@ -1617,7 +1617,7 @@ bom { ...@@ -1617,7 +1617,7 @@ bom {
] ]
} }
} }
library("Spring Framework", "5.2.3.RELEASE") { library("Spring Framework", "5.2.4.BUILD-SNAPSHOT") {
group("org.springframework") { group("org.springframework") {
imports = [ imports = [
"spring-framework-bom" "spring-framework-bom"
......
...@@ -61,8 +61,9 @@ class TaskExecutorBuilderTests { ...@@ -61,8 +61,9 @@ class TaskExecutorBuilderTests {
@Test @Test
void awaitTerminationPeriodShouldApply() { void awaitTerminationPeriodShouldApply() {
ThreadPoolTaskExecutor executor = this.builder.awaitTerminationPeriod(Duration.ofMinutes(1)).build(); Duration period = Duration.ofMinutes(1);
assertThat(executor).hasFieldOrPropertyWithValue("awaitTerminationSeconds", 60); ThreadPoolTaskExecutor executor = this.builder.awaitTerminationPeriod(period).build();
assertThat(executor).hasFieldOrPropertyWithValue("awaitTerminationMillis", period.toMillis());
} }
@Test @Test
......
/* /*
* Copyright 2012-2019 the original author or authors. * Copyright 2012-2020 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
...@@ -54,8 +54,9 @@ class TaskSchedulerBuilderTests { ...@@ -54,8 +54,9 @@ class TaskSchedulerBuilderTests {
@Test @Test
void awaitTerminationPeriodShouldApply() { void awaitTerminationPeriodShouldApply() {
ThreadPoolTaskScheduler executor = this.builder.awaitTerminationPeriod(Duration.ofMinutes(1)).build(); Duration period = Duration.ofMinutes(1);
assertThat(executor).hasFieldOrPropertyWithValue("awaitTerminationSeconds", 60); ThreadPoolTaskScheduler executor = this.builder.awaitTerminationPeriod(period).build();
assertThat(executor).hasFieldOrPropertyWithValue("awaitTerminationMillis", period.toMillis());
} }
@Test @Test
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment