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
76d0a7f8
Commit
76d0a7f8
authored
Mar 05, 2021
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '2.4.x'
Closes gh-25506
parents
37dcb908
2682b380
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
16 deletions
+15
-16
Neo4jAutoConfigurationTests.java
...boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java
+2
-2
BuildInfoIntegrationTests.java
...oot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java
+2
-2
BootBuildImageRegistryIntegrationTests.java
...asks/bundling/BootBuildImageRegistryIntegrationTests.java
+2
-2
AbstractArchiveIntegrationTests.java
...framework/boot/maven/AbstractArchiveIntegrationTests.java
+1
-1
BuildImageRegistryIntegrationTests.java
...mework/boot/maven/BuildImageRegistryIntegrationTests.java
+2
-2
SpringApplicationTests.java
...java/org/springframework/boot/SpringApplicationTests.java
+3
-3
NettyRSocketServerFactoryTests.java
...rk/boot/rsocket/netty/NettyRSocketServerFactoryTests.java
+2
-3
Jetty10ServletWebServerFactoryTests.java
...b/embedded/jetty/Jetty10ServletWebServerFactoryTests.java
+1
-1
No files found.
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java
View file @
76d0a7f8
/*
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
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.
...
@@ -284,7 +284,7 @@ class Neo4jAutoConfigurationTests {
...
@@ -284,7 +284,7 @@ class Neo4jAutoConfigurationTests {
@Test
@Test
void
securityWithCustomCertificates
(
@TempDir
File
directory
)
throws
IOException
{
void
securityWithCustomCertificates
(
@TempDir
File
directory
)
throws
IOException
{
File
certFile
=
new
File
(
directory
,
"neo4j-driver.cert"
);
File
certFile
=
new
File
(
directory
,
"neo4j-driver.cert"
);
assertThat
(
certFile
.
createNewFile
());
assertThat
(
certFile
.
createNewFile
())
.
isTrue
()
;
Neo4jProperties
properties
=
new
Neo4jProperties
();
Neo4jProperties
properties
=
new
Neo4jProperties
();
properties
.
getSecurity
().
setTrustStrategy
(
TrustStrategy
.
TRUST_CUSTOM_CA_SIGNED_CERTIFICATES
);
properties
.
getSecurity
().
setTrustStrategy
(
TrustStrategy
.
TRUST_CUSTOM_CA_SIGNED_CERTIFICATES
);
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java
View file @
76d0a7f8
/*
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
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.
...
@@ -80,7 +80,7 @@ class BuildInfoIntegrationTests {
...
@@ -80,7 +80,7 @@ class BuildInfoIntegrationTests {
Properties
second
=
buildInfoProperties
();
Properties
second
=
buildInfoProperties
();
String
secondBuildTime
=
second
.
getProperty
(
"build.time"
);
String
secondBuildTime
=
second
.
getProperty
(
"build.time"
);
assertThat
(
secondBuildTime
).
isNotNull
();
assertThat
(
secondBuildTime
).
isNotNull
();
assertThat
(
Instant
.
parse
(
firstBuildTime
)
.
isBefore
(
Instant
.
parse
(
secondBuildTime
)
));
assertThat
(
Instant
.
parse
(
firstBuildTime
)
).
isBefore
(
Instant
.
parse
(
secondBuildTime
));
}
}
@TestTemplate
@TestTemplate
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/BootBuildImageRegistryIntegrationTests.java
View file @
76d0a7f8
/*
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
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.
...
@@ -61,7 +61,7 @@ public class BootBuildImageRegistryIntegrationTests {
...
@@ -61,7 +61,7 @@ public class BootBuildImageRegistryIntegrationTests {
@BeforeEach
@BeforeEach
void
setUp
()
{
void
setUp
()
{
assertThat
(
registry
.
isRunning
());
assertThat
(
registry
.
isRunning
())
.
isTrue
()
;
this
.
registryAddress
=
registry
.
getHost
()
+
":"
+
registry
.
getFirstMappedPort
();
this
.
registryAddress
=
registry
.
getHost
()
+
":"
+
registry
.
getFirstMappedPort
();
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/AbstractArchiveIntegrationTests.java
View file @
76d0a7f8
...
@@ -98,7 +98,7 @@ abstract class AbstractArchiveIntegrationTests {
...
@@ -98,7 +98,7 @@ abstract class AbstractArchiveIntegrationTests {
private
JarAssert
(
File
actual
)
{
private
JarAssert
(
File
actual
)
{
super
(
actual
,
JarAssert
.
class
);
super
(
actual
,
JarAssert
.
class
);
assertThat
(
actual
.
exists
()
);
assertThat
(
actual
).
exists
(
);
}
}
JarAssert
doesNotHaveEntryWithName
(
String
name
)
{
JarAssert
doesNotHaveEntryWithName
(
String
name
)
{
...
...
spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/BuildImageRegistryIntegrationTests.java
View file @
76d0a7f8
/*
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
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.
...
@@ -55,7 +55,7 @@ public class BuildImageRegistryIntegrationTests extends AbstractArchiveIntegrati
...
@@ -55,7 +55,7 @@ public class BuildImageRegistryIntegrationTests extends AbstractArchiveIntegrati
@BeforeEach
@BeforeEach
void
setUp
()
{
void
setUp
()
{
assertThat
(
registry
.
isRunning
());
assertThat
(
registry
.
isRunning
())
.
isTrue
()
;
this
.
dockerClient
=
registry
.
getDockerClient
();
this
.
dockerClient
=
registry
.
getDockerClient
();
this
.
registryAddress
=
registry
.
getHost
()
+
":"
+
registry
.
getFirstMappedPort
();
this
.
registryAddress
=
registry
.
getHost
()
+
":"
+
registry
.
getFirstMappedPort
();
}
}
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/SpringApplicationTests.java
View file @
76d0a7f8
/*
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
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.
...
@@ -1228,10 +1228,10 @@ class SpringApplicationTests {
...
@@ -1228,10 +1228,10 @@ class SpringApplicationTests {
application
.
addListeners
(
listener
);
application
.
addListeners
(
listener
);
application
.
run
();
application
.
run
();
ApplicationStartingEvent
startingEvent
=
listener
.
getEvent
(
ApplicationStartingEvent
.
class
);
ApplicationStartingEvent
startingEvent
=
listener
.
getEvent
(
ApplicationStartingEvent
.
class
);
assertThat
(
startingEvent
.
getBootstrapContext
().
get
(
String
.
class
));
assertThat
(
startingEvent
.
getBootstrapContext
().
get
(
String
.
class
))
.
isEqualTo
(
"boot"
)
;
ApplicationEnvironmentPreparedEvent
environmentPreparedEvent
=
listener
ApplicationEnvironmentPreparedEvent
environmentPreparedEvent
=
listener
.
getEvent
(
ApplicationEnvironmentPreparedEvent
.
class
);
.
getEvent
(
ApplicationEnvironmentPreparedEvent
.
class
);
assertThat
(
environmentPreparedEvent
.
getBootstrapContext
().
get
(
String
.
class
));
assertThat
(
environmentPreparedEvent
.
getBootstrapContext
().
get
(
String
.
class
))
.
isEqualTo
(
"boot"
)
;
}
}
@Test
@Test
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/rsocket/netty/NettyRSocketServerFactoryTests.java
View file @
76d0a7f8
/*
/*
* Copyright 2012-202
0
the original author or authors.
* Copyright 2012-202
1
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,7 +54,6 @@ import org.springframework.messaging.rsocket.RSocketStrategies;
...
@@ -54,7 +54,6 @@ import org.springframework.messaging.rsocket.RSocketStrategies;
import
org.springframework.util.SocketUtils
;
import
org.springframework.util.SocketUtils
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThatExceptionOfType
;
import
static
org
.
mockito
.
ArgumentMatchers
.
any
;
import
static
org
.
mockito
.
ArgumentMatchers
.
any
;
import
static
org
.
mockito
.
BDDMockito
.
will
;
import
static
org
.
mockito
.
BDDMockito
.
will
;
import
static
org
.
mockito
.
Mockito
.
inOrder
;
import
static
org
.
mockito
.
Mockito
.
inOrder
;
...
@@ -203,7 +202,7 @@ class NettyRSocketServerFactoryTests {
...
@@ -203,7 +202,7 @@ class NettyRSocketServerFactoryTests {
String
payload
=
"test payload"
;
String
payload
=
"test payload"
;
Mono
<
String
>
responseMono
=
this
.
requester
.
route
(
"test"
).
data
(
payload
).
retrieveMono
(
String
.
class
);
Mono
<
String
>
responseMono
=
this
.
requester
.
route
(
"test"
).
data
(
payload
).
retrieveMono
(
String
.
class
);
StepVerifier
.
create
(
responseMono
)
StepVerifier
.
create
(
responseMono
)
.
verifyErrorSatisfies
((
ex
)
->
assertThat
ExceptionOfType
(
ClosedChannelException
.
class
));
.
verifyErrorSatisfies
((
ex
)
->
assertThat
(
ex
).
isInstanceOf
(
ClosedChannelException
.
class
));
}
}
private
RSocketRequester
createRSocketTcpClient
()
{
private
RSocketRequester
createRSocketTcpClient
()
{
...
...
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/embedded/jetty/Jetty10ServletWebServerFactoryTests.java
View file @
76d0a7f8
...
@@ -40,7 +40,7 @@ public class Jetty10ServletWebServerFactoryTests extends JettyServletWebServerFa
...
@@ -40,7 +40,7 @@ public class Jetty10ServletWebServerFactoryTests extends JettyServletWebServerFa
@Test
@Test
protected
void
correctVersionOfJettyUsed
()
{
protected
void
correctVersionOfJettyUsed
()
{
String
jettyVersion
=
ErrorHandler
.
class
.
getPackage
().
getImplementationVersion
();
String
jettyVersion
=
ErrorHandler
.
class
.
getPackage
().
getImplementationVersion
();
assertThat
(
jettyVersion
.
startsWith
(
"10.0"
)
);
assertThat
(
jettyVersion
).
startsWith
(
"10.0"
);
}
}
@Override
@Override
...
...
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