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
595fada2
Commit
595fada2
authored
Mar 28, 2017
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8660 from dreis2211:cleanup-equals-exceptions
* pr/8660: Fix test assertions
parents
113279c1
1266642a
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 @
595fada2
...
...
@@ -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 @
595fada2
...
...
@@ -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