Commit f5a42f8
test(framework): address PR review comments on test code quality
- Remove dead moreThanFrozenNumber test in FreezeBalanceV2ActuatorTest
(error message no longer exists in production code)
- Remove unnecessary try/catch around addAssetV2 in AccountAssetStoreTest
(method declares no checked exceptions)
- Replace try/catch pattern with Assert.assertThrows in FetchInvDataMsgHandlerTest
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ed42e92 commit f5a42f8
3 files changed
Lines changed: 9 additions & 46 deletions
File tree
- framework/src/test/java/org/tron/core
- actuator
- db
- net/messagehandler
Lines changed: 0 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | 271 | | |
299 | 272 | | |
300 | 273 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 87 | + | |
92 | 88 | | |
93 | 89 | | |
94 | 90 | | |
| |||
Lines changed: 8 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | | - | |
| 114 | + | |
116 | 115 | | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
122 | 119 | | |
123 | | - | |
124 | | - | |
| 120 | + | |
125 | 121 | | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
131 | 125 | | |
132 | 126 | | |
133 | 127 | | |
| |||
0 commit comments