You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For this particular test, SpecimenType.isTimeType() returns true for any type that implements TemporalAdjuster, but when creating the instance, TimeSpecimen only checks for the specific implementation MonthDay and throws otherwise.
So we either have to relax the TimeSpecimen to return MonthDay for anyTemporalAdjuster-implementation, or we make SpecimenType.isTimeType() stricter in detecting temporal types. I'd prefer the latter.
I also assume, the same problem happens for the TemporalAmount-interface while the Temporal-interface seems properly covered.
The text was updated successfully, but these errors were encountered:
The following test will throw an exception:
Exception:
Reason is a mistmatch between detecting the specimen in SpecimenType.isTimeType() and creating an instance in TimeSpecimen.create().
For this particular test,
SpecimenType.isTimeType()
returnstrue
for any type that implementsTemporalAdjuster
, but when creating the instance,TimeSpecimen
only checks for the specific implementationMonthDay
and throws otherwise.So we either have to relax the
TimeSpecimen
to returnMonthDay
for anyTemporalAdjuster
-implementation, or we makeSpecimenType.isTimeType()
stricter in detecting temporal types. I'd prefer the latter.I also assume, the same problem happens for the
TemporalAmount
-interface while theTemporal
-interface seems properly covered.The text was updated successfully, but these errors were encountered: