FlexTradeUKLtd / jfixture

JFixture is an open source library based on the popular .NET library, AutoFixture
MIT License
105 stars 22 forks source link

New customisation - intercepting specimens and using return value #46

Closed pwfcurry closed 6 years ago

pwfcurry commented 6 years ago

This allows you to usefully intercept immutable values, e.g.,

fixture.customise().intercept(String.class, value => value + "suffix")

You can still use mutation-only interceptors.

pwfcurry commented 6 years ago

Thanks Rob. I'm away for a week - if everyone's happy would you mind merging this in Rich?