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
1266642a
Commit
1266642a
authored
Mar 18, 2017
by
dreis
Committed by
Stephane Nicoll
Mar 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test assertions
Closes gh-8660
parent
113279c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
LayoutsTests.java
...a/org/springframework/boot/loader/tools/LayoutsTests.java
+1
-1
RandomAccessDataFileTests.java
...framework/boot/loader/data/RandomAccessDataFileTests.java
+4
-4
No files found.
spring-boot-tools/spring-boot-loader-tools/src/test/java/org/springframework/boot/loader/tools/LayoutsTests.java
View file @
1266642a
...
...
@@ -55,7 +55,7 @@ public class LayoutsTests {
@Test
public
void
unknownFile
()
throws
Exception
{
this
.
thrown
.
e
quals
(
IllegalStateException
.
class
);
this
.
thrown
.
e
xpect
(
IllegalStateException
.
class
);
this
.
thrown
.
expectMessage
(
"Unable to deduce layout for 'test.txt'"
);
Layouts
.
forFile
(
new
File
(
"test.txt"
));
}
...
...
spring-boot-tools/spring-boot-loader/src/test/java/org/springframework/boot/loader/data/RandomAccessDataFileTests.java
View file @
1266642a
...
...
@@ -87,28 +87,28 @@ public class RandomAccessDataFileTests {
@Test
public
void
fileNotNull
()
throws
Exception
{
this
.
thrown
.
expect
(
IllegalArgumentException
.
class
);
this
.
thrown
.
e
quals
(
"File must not be null"
);
this
.
thrown
.
e
xpectMessage
(
"File must not be null"
);
new
RandomAccessDataFile
(
null
);
}
@Test
public
void
fileExists
()
throws
Exception
{
this
.
thrown
.
expect
(
IllegalArgumentException
.
class
);
this
.
thrown
.
e
quals
(
"File must exist"
);
this
.
thrown
.
e
xpectMessage
(
"File must exist"
);
new
RandomAccessDataFile
(
new
File
(
"/does/not/exist"
));
}
@Test
public
void
fileNotNullWithConcurrentReads
()
throws
Exception
{
this
.
thrown
.
expect
(
IllegalArgumentException
.
class
);
this
.
thrown
.
e
quals
(
"File must not be null"
);
this
.
thrown
.
e
xpectMessage
(
"File must not be null"
);
new
RandomAccessDataFile
(
null
,
1
);
}
@Test
public
void
fileExistsWithConcurrentReads
()
throws
Exception
{
this
.
thrown
.
expect
(
IllegalArgumentException
.
class
);
this
.
thrown
.
e
quals
(
"File must exist"
);
this
.
thrown
.
e
xpectMessage
(
"File must exist"
);
new
RandomAccessDataFile
(
new
File
(
"/does/not/exist"
),
1
);
}
...
...
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