Commit 1d4aaf2
authored
Suppress expected RuntimeException in AbstractMediaTest using TestLogger (#4256)
This change addresses an issue where `AbstractMediaTest.testConcurrentPauseAsyncError` prints a `java.lang.RuntimeException: Fail` stack trace to stderr during execution, creating noise in CI logs. This exception is expected as part of the test logic but was not being intercepted.
We now use `TestLogger.install()` to capture the exception, verify it matches the expected "Fail" message, and then clear it, preventing it from being printed to the console. This ensures cleaner test output while maintaining the integrity of the error handling test case.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent 3bbbf0c commit 1d4aaf2
File tree
1 file changed
+36
-14
lines changed- maven/core-unittests/src/test/java/com/codename1/media
1 file changed
+36
-14
lines changedLines changed: 36 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
121 | 143 | | |
122 | 144 | | |
0 commit comments