Part of #1: Code Coverage Below Threshold
Problem
ResourceQuota getters (getMaxHeapBytes(), getMaxThreadCount(), getMaxCpuTimeNanos()) are never directly asserted in tests. Builder boundary values (zero) are also untested.
Scope
Add tests covering:
- Each getter returns
Optional.of(value) when set via builder
- Each getter returns
Optional.empty() when not set
- Builder accepts zero values (boundary:
maxHeapBytes(0), maxThreadCount(0), maxCpuTimeNanos(0))
ResourceQuota.builder() static factory returns a new Builder instance
Acceptance Criteria
Part of #1: Code Coverage Below Threshold
Problem
ResourceQuotagetters (getMaxHeapBytes(),getMaxThreadCount(),getMaxCpuTimeNanos()) are never directly asserted in tests. Builder boundary values (zero) are also untested.Scope
Add tests covering:
Optional.of(value)when set via builderOptional.empty()when not setmaxHeapBytes(0),maxThreadCount(0),maxCpuTimeNanos(0))ResourceQuota.builder()static factory returns a new Builder instanceAcceptance Criteria
IllegalArgumentExceptionmvn clean verifypasses