ocadotechnology / test-arranger

Arranges test data as fully populated objects
Apache License 2.0
23 stars 2 forks source link

Throw runtime exception when trying to override non existing field #57

Closed mjureczko closed 1 year ago

mjureczko commented 1 year ago

I.e. when

some(MyClass.class, Map.of("myField", () -> "someValue"))

and MyClass has no myfield field or the value produced by the submitted supplier cannot be assigned to the myFieldfield. In order to fail fast with invalid test data preparations.