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
ae1f95e6
Commit
ae1f95e6
authored
Sep 23, 2017
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start building against Spring Framework snapshots for 5.0.0.RELEASE
See gh-10325
parent
d2212028
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
+16
-15
pom.xml
spring-boot-dependencies/pom.xml
+1
-1
pom.xml
spring-boot/pom.xml
+5
-0
StartUpLoggerTests.java
...est/java/org/springframework/boot/StartUpLoggerTests.java
+10
-14
No files found.
spring-boot-dependencies/pom.xml
View file @
ae1f95e6
...
...
@@ -162,7 +162,7 @@
<slf4j.version>
1.7.25
</slf4j.version>
<snakeyaml.version>
1.18
</snakeyaml.version>
<solr.version>
6.6.1
</solr.version>
<spring.version>
5.0.0.
RC4
</spring.version>
<spring.version>
5.0.0.
BUILD-SNAPSHOT
</spring.version>
<spring-amqp.version>
2.0.0.RC1
</spring-amqp.version>
<spring-cloud-connectors.version>
2.0.0.M1
</spring-cloud-connectors.version>
<spring-batch.version>
4.0.0.M3
</spring-batch.version>
...
...
spring-boot/pom.xml
View file @
ae1f95e6
...
...
@@ -351,6 +351,11 @@
<artifactId>
mariadb-java-client
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.mockito
</groupId>
<artifactId>
mockito-core
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.postgresql
</groupId>
<artifactId>
postgresql
</artifactId>
...
...
spring-boot/src/test/java/org/springframework/boot/StartUpLoggerTests.java
View file @
ae1f95e6
/*
* Copyright 2012-201
6
the original author or authors.
* Copyright 2012-201
7
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.
...
...
@@ -16,33 +16,29 @@
package
org
.
springframework
.
boot
;
import
org.apache.commons.logging.
impl.Simple
Log
;
import
org.apache.commons.logging.Log
;
import
org.junit.Test
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
import
static
org
.
mockito
.
ArgumentMatchers
.
startsWith
;
import
static
org
.
mockito
.
BDDMockito
.
given
;
import
static
org
.
mockito
.
Mockito
.
mock
;
import
static
org
.
mockito
.
Mockito
.
verify
;
/**
* Tests for {@link StartupInfoLogger}.
*
* @author Dave Syer
* @author Andy Wilkinson
*/
public
class
StartUpLoggerTests
{
private
final
StringBuffer
output
=
new
StringBuffer
();
@SuppressWarnings
(
"serial"
)
private
final
SimpleLog
log
=
new
SimpleLog
(
"test"
)
{
@Override
protected
void
write
(
StringBuffer
buffer
)
{
StartUpLoggerTests
.
this
.
output
.
append
(
buffer
).
append
(
"\n"
);
};
};
private
final
Log
log
=
mock
(
Log
.
class
);
@Test
public
void
sourceClassIncluded
()
{
given
(
this
.
log
.
isInfoEnabled
()).
willReturn
(
true
);
new
StartupInfoLogger
(
getClass
()).
logStarting
(
this
.
log
);
assertThat
(
this
.
output
.
toString
())
.
contains
(
"Starting "
+
getClass
().
getSimpleName
());
verify
(
this
.
log
).
info
(
startsWith
(
"Starting "
+
getClass
().
getSimpleName
()));
}
}
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