mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-299881 restore System.out after redirecting it in test
GitOrigin-RevId: 67c35107afbbdc8334145591c75469bc82a5b85d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
06a40bca3c
commit
c570ebb711
+2
-1
@@ -825,6 +825,7 @@ class ModuleBridgesTest {
|
||||
}
|
||||
|
||||
fun catchLog(): String {
|
||||
val prev = System.out
|
||||
return try {
|
||||
val outCatcher = OutCatcher(System.out)
|
||||
System.setOut(outCatcher)
|
||||
@@ -832,7 +833,7 @@ class ModuleBridgesTest {
|
||||
outCatcher.catcher
|
||||
}
|
||||
finally {
|
||||
System.setOut(System.out)
|
||||
System.setOut(prev)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user