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
1b38cdde
Commit
1b38cdde
authored
Aug 12, 2013
by
Chanwit Kaewkasi
Committed by
Phillip Webb
Aug 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a line ending issue for building on Windows
parent
e7689fd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
WhitespaceThrowableProxyConverterTests.java
...gging/logback/WhitespaceThrowableProxyConverterTests.java
+6
-3
No files found.
spring-boot/src/test/java/org/springframework/boot/logging/logback/WhitespaceThrowableProxyConverterTests.java
View file @
1b38cdde
...
@@ -17,10 +17,10 @@
...
@@ -17,10 +17,10 @@
package
org
.
springframework
.
boot
.
logging
.
logback
;
package
org
.
springframework
.
boot
.
logging
.
logback
;
import
org.junit.Test
;
import
org.junit.Test
;
import
org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter
;
import
ch.qos.logback.classic.spi.LoggingEvent
;
import
ch.qos.logback.classic.spi.LoggingEvent
;
import
ch.qos.logback.classic.spi.ThrowableProxy
;
import
ch.qos.logback.classic.spi.ThrowableProxy
;
import
static
org
.
hamcrest
.
Matchers
.
endsWith
;
import
static
org
.
hamcrest
.
Matchers
.
endsWith
;
import
static
org
.
hamcrest
.
Matchers
.
equalTo
;
import
static
org
.
hamcrest
.
Matchers
.
equalTo
;
import
static
org
.
hamcrest
.
Matchers
.
startsWith
;
import
static
org
.
hamcrest
.
Matchers
.
startsWith
;
...
@@ -30,9 +30,12 @@ import static org.junit.Assert.assertThat;
...
@@ -30,9 +30,12 @@ import static org.junit.Assert.assertThat;
* Tests for {@link WhitespaceThrowableProxyConverter}.
* Tests for {@link WhitespaceThrowableProxyConverter}.
*
*
* @author Phillip Webb
* @author Phillip Webb
* @author Chanwit Kaewkasi
*/
*/
public
class
WhitespaceThrowableProxyConverterTests
{
public
class
WhitespaceThrowableProxyConverterTests
{
private
static
final
String
LINE_SEPARATOR
=
System
.
getProperty
(
"line.separator"
);
private
WhitespaceThrowableProxyConverter
converter
=
new
WhitespaceThrowableProxyConverter
();
private
WhitespaceThrowableProxyConverter
converter
=
new
WhitespaceThrowableProxyConverter
();
private
LoggingEvent
event
=
new
LoggingEvent
();
private
LoggingEvent
event
=
new
LoggingEvent
();
...
@@ -47,8 +50,8 @@ public class WhitespaceThrowableProxyConverterTests {
...
@@ -47,8 +50,8 @@ public class WhitespaceThrowableProxyConverterTests {
public
void
withStackTrace
()
throws
Exception
{
public
void
withStackTrace
()
throws
Exception
{
this
.
event
.
setThrowableProxy
(
new
ThrowableProxy
(
new
RuntimeException
()));
this
.
event
.
setThrowableProxy
(
new
ThrowableProxy
(
new
RuntimeException
()));
String
s
=
this
.
converter
.
convert
(
this
.
event
);
String
s
=
this
.
converter
.
convert
(
this
.
event
);
assertThat
(
s
,
startsWith
(
"\n"
));
assertThat
(
s
,
startsWith
(
LINE_SEPARATOR
));
assertThat
(
s
,
endsWith
(
"\n"
));
assertThat
(
s
,
endsWith
(
LINE_SEPARATOR
));
}
}
}
}
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