Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
Logging Log4j2
Commits
211326b3
Commit
211326b3
authored
7 years ago
by
rpopma
Browse files
Options
Download
Email Patches
Plain Diff
Fix Log4j1ConfigurationFactoryTest test that fails the build on Windows
parent
0c3288d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
log4j-1.2-api/src/test/java/org/apache/log4j/config/Log4j1ConfigurationFactoryTest.java
+4
-1
...g/apache/log4j/config/Log4j1ConfigurationFactoryTest.java
with
4 additions
and
1 deletion
+4
-1
log4j-1.2-api/src/test/java/org/apache/log4j/config/Log4j1ConfigurationFactoryTest.java
+
4
-
1
View file @
211326b3
...
...
@@ -24,6 +24,7 @@ import static org.junit.Assert.assertTrue;
import
java.io.File
;
import
java.net.URISyntaxException
;
import
java.net.URL
;
import
java.nio.file.FileSystemException
;
import
java.nio.file.Files
;
import
java.nio.file.Path
;
import
java.util.concurrent.TimeUnit
;
...
...
@@ -170,7 +171,9 @@ public class Log4j1ConfigurationFactoryTest {
System
.
out
.
println
(
"expected: "
+
tempFileName
+
" Actual: "
+
appender
.
getFileName
());
assertEquals
(
tempFileName
,
appender
.
getFileName
());
}
finally
{
Files
.
deleteIfExists
(
tempFilePath
);
try
{
Files
.
deleteIfExists
(
tempFilePath
);
}
catch
(
FileSystemException
ignored
)
{}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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