Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
67d2258e
Commit
67d2258e
authored
Feb 20, 2020
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start building against Spring Framework 5.2.4 snapshots
See gh-20199
parent
ef0d8818
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
11 deletions
+13
-11
TaskExecutionAutoConfigurationTests.java
...toconfigure/task/TaskExecutionAutoConfigurationTests.java
+2
-2
TaskSchedulingAutoConfigurationTests.java
...oconfigure/task/TaskSchedulingAutoConfigurationTests.java
+2
-2
pom.xml
spring-boot-project/spring-boot-dependencies/pom.xml
+1
-1
TaskExecutorBuilderTests.java
...g/springframework/boot/task/TaskExecutorBuilderTests.java
+4
-3
TaskSchedulerBuilderTests.java
.../springframework/boot/task/TaskSchedulerBuilderTests.java
+4
-3
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/task/TaskExecutionAutoConfigurationTests.java
View file @
67d2258e
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -73,7 +73,7 @@ class TaskExecutionAutoConfigurationTests {
assertThat
(
taskExecutor
).
hasFieldOrPropertyWithValue
(
"allowCoreThreadTimeOut"
,
true
);
assertThat
(
taskExecutor
.
getKeepAliveSeconds
()).
isEqualTo
(
5
);
assertThat
(
taskExecutor
).
hasFieldOrPropertyWithValue
(
"waitForTasksToCompleteOnShutdown"
,
true
);
assertThat
(
taskExecutor
).
hasFieldOrPropertyWithValue
(
"awaitTermination
Seconds"
,
30
);
assertThat
(
taskExecutor
).
hasFieldOrPropertyWithValue
(
"awaitTermination
Millis"
,
30000L
);
assertThat
(
taskExecutor
.
getThreadNamePrefix
()).
isEqualTo
(
"mytest-"
);
}));
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/task/TaskSchedulingAutoConfigurationTests.java
View file @
67d2258e
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -68,7 +68,7 @@ class TaskSchedulingAutoConfigurationTests {
TestBean
bean
=
context
.
getBean
(
TestBean
.
class
);
assertThat
(
bean
.
latch
.
await
(
30
,
TimeUnit
.
SECONDS
)).
isTrue
();
assertThat
(
taskExecutor
).
hasFieldOrPropertyWithValue
(
"waitForTasksToCompleteOnShutdown"
,
true
);
assertThat
(
taskExecutor
).
hasFieldOrPropertyWithValue
(
"awaitTermination
Seconds"
,
30
);
assertThat
(
taskExecutor
).
hasFieldOrPropertyWithValue
(
"awaitTermination
Millis"
,
30000L
);
assertThat
(
bean
.
threadNames
).
allMatch
((
name
)
->
name
.
contains
(
"scheduling-test-"
));
});
}
...
...
spring-boot-project/spring-boot-dependencies/pom.xml
View file @
67d2258e
...
...
@@ -189,7 +189,7 @@
<spring-batch.version>
4.2.1.RELEASE
</spring-batch.version>
<spring-cloud-connectors.version>
2.0.7.RELEASE
</spring-cloud-connectors.version>
<spring-data-releasetrain.version>
Moore-SR4
</spring-data-releasetrain.version>
<spring-framework.version>
5.2.
3.RELEASE
</spring-framework.version>
<spring-framework.version>
5.2.
4.BUILD-SNAPSHOT
</spring-framework.version>
<spring-hateoas.version>
1.0.3.RELEASE
</spring-hateoas.version>
<spring-integration.version>
5.2.3.RELEASE
</spring-integration.version>
<spring-kafka.version>
2.3.5.RELEASE
</spring-kafka.version>
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/task/TaskExecutorBuilderTests.java
View file @
67d2258e
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -62,8 +62,9 @@ class TaskExecutorBuilderTests {
@Test
void
awaitTerminationPeriodShouldApply
()
{
ThreadPoolTaskExecutor
executor
=
this
.
builder
.
awaitTerminationPeriod
(
Duration
.
ofMinutes
(
1
)).
build
();
assertThat
(
executor
).
hasFieldOrPropertyWithValue
(
"awaitTerminationSeconds"
,
60
);
Duration
period
=
Duration
.
ofMinutes
(
1
);
ThreadPoolTaskExecutor
executor
=
this
.
builder
.
awaitTerminationPeriod
(
period
).
build
();
assertThat
(
executor
).
hasFieldOrPropertyWithValue
(
"awaitTerminationMillis"
,
period
.
toMillis
());
}
@Test
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/task/TaskSchedulerBuilderTests.java
View file @
67d2258e
/*
* Copyright 2012-20
19
the original author or authors.
* Copyright 2012-20
20
the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -54,8 +54,9 @@ class TaskSchedulerBuilderTests {
@Test
void
awaitTerminationPeriodShouldApply
()
{
ThreadPoolTaskScheduler
executor
=
this
.
builder
.
awaitTerminationPeriod
(
Duration
.
ofMinutes
(
1
)).
build
();
assertThat
(
executor
).
hasFieldOrPropertyWithValue
(
"awaitTerminationSeconds"
,
60
);
Duration
period
=
Duration
.
ofMinutes
(
1
);
ThreadPoolTaskScheduler
executor
=
this
.
builder
.
awaitTerminationPeriod
(
period
).
build
();
assertThat
(
executor
).
hasFieldOrPropertyWithValue
(
"awaitTerminationMillis"
,
period
.
toMillis
());
}
@Test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment