Commit 538dbea
Use the class rejection helper in the SF segment tests
The two storeAndForwardMaxSegmentBytes rejection tests spelled out
try/fail/catch inline, 19 lines for what the class already expresses in
one call. assertThrows(String, Runnable) is the dominant idiom here,
used by roughly twenty other tests in the file, and it produces a
better failure message than a bare Assert.fail.
The assertion moves from message equality to containment. The expected
text is the whole message in both cases, so the check is as strong as
it was; a mutation run with both production guards removed fails both
tests.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 558a70c commit 538dbea
1 file changed
Lines changed: 4 additions & 19 deletions
File tree
- core/src/test/java/io/questdb/client/test/cutlass/qwp/client
Lines changed: 4 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
| 652 | + | |
| 653 | + | |
662 | 654 | | |
663 | 655 | | |
664 | 656 | | |
| |||
670 | 662 | | |
671 | 663 | | |
672 | 664 | | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
| 665 | + | |
| 666 | + | |
682 | 667 | | |
683 | 668 | | |
684 | 669 | | |
| |||
0 commit comments