FileThresholdValidator Tests

18

tests

0

failures

0

ignored

0.401s

duration

100%

successful

Tests

Test Duration Result
should allow enqueue when queue size is below threshold() 0.028s passed
should calculate threshold utilization percentage() 0.021s passed
should check if near threshold() 0.019s passed
should check if threshold is enabled() 0.013s passed
should default to enabled when setting not found() 0.026s passed
should get current threshold value() 0.018s passed
should get default threshold when not configured() 0.031s passed
should get remaining capacity() 0.015s passed
should handle zero threshold gracefully() 0.029s passed
should reject batch that would exceed threshold() 0.019s passed
should reject enqueue when queue size equals threshold() 0.016s passed
should reject enqueue when queue size exceeds threshold() 0.030s passed
should return zero when over capacity() 0.025s passed
should throw exception when threshold exceeded() 0.027s passed
should update threshold setting() 0.028s passed
should use default threshold when setting not found() 0.019s passed
should validate batch enqueue() 0.024s passed
should validate threshold before enqueue() 0.013s passed

Standard output

2026-04-07 15:05:28 - c.q.t.s.v.FileThresholdValidator - File threshold updated to: 7500