almondtools / testrecorder

Create Test Fixtures from Runnable Java Code
http://testrecorder.amygdalum.net/
GNU Lesser General Public License v3.0
51 stars 5 forks source link

Normalize Configuration - use Service Providers #11

Closed almondtools closed 7 years ago

almondtools commented 8 years ago

A Service Provider could be useful to configure:

almondtools commented 8 years ago

Yet the api allows to exchange the deserializer for builders and matchers completly be own classes.

Yet I consider it more helpfull to extend/modify the Builder/Matcher-Deserializer (ObjectToSetupCode, ObjectToMatcherCode) with new features.

I also think that allowing more serialized values will provide no benefit. The SerializedObject class is able to completely specify any object. It could serve as generic interchange object, and there is no constraint how it should be used (despite the fact that the matching deserializer must know how to interprete it).

So at this point the configuration should include:

and not: