mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
more logs for tests
This commit is contained in:
+7
@@ -49,6 +49,7 @@ import org.jdom.Element;
|
||||
import org.jdom.Parent;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.TestOnly;
|
||||
|
||||
import javax.swing.event.HyperlinkEvent;
|
||||
import java.io.File;
|
||||
@@ -138,11 +139,17 @@ public class StorageUtil {
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode() && DEBUG_LOG != null) {
|
||||
DEBUG_LOG = result.getPath() + ": " + content;
|
||||
}
|
||||
doWrite(requestor, result, virtualFile, content, lineSeparatorIfPrependXmlProlog);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public static String DEBUG_LOG = "";
|
||||
|
||||
private static void doWrite(@NotNull final Object requestor,
|
||||
@NotNull final VirtualFile file,
|
||||
@Nullable final VirtualFile proposedFile,
|
||||
|
||||
Reference in New Issue
Block a user