mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
testing_faq.md: small improvements (IJSDK-1468)
This commit is contained in:
parent
3afa258e08
commit
acc229895b
@ -45,12 +45,12 @@ void tearDown() {
|
||||
}
|
||||
```
|
||||
|
||||
Avoid OS-specific assumptions (e.g., filesystem case-sensitivity, hardcoded separator instead of `java.io.File.separator`).
|
||||
Avoid OS-specific assumptions (e.g., filesystem case-sensitivity, hardcoded separator instead of `java.io.File.separator`, default encoding, line endings).
|
||||
|
||||
Use _ordered_ collections or [`UsefulTestCase.assertUnorderedCollection()`](upsource:///platform/testFramework/src/com/intellij/testFramework/UsefulTestCase.java).
|
||||
|
||||
Code deferring execution (e.g., via `Application.invokeLater()`) might not run during test execution (and possibly fails in production, too).
|
||||
Use `Application.invokeLater(runnable, myProject.getDisposed()`.
|
||||
Use `Application.invokeLater(runnable, myProject.getDisposed())`.
|
||||
|
||||
### How to avoid test failure when using resources?
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user