ocadotechnology / test-arranger

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

Custom arranger created using constructor does not recognize other custom arranger #20

Closed mjureczko closed 1 year ago

mjureczko commented 2 years ago

Given

public class AArranger extends CustomArranger<A> {
...
public A withX(X x) {
  return super.instance().toBuilder().x(x).build();
}
...

and Class A contain field of type B that has a custom arranger BArranger

when calling:

new AArranger().withX(x);

then the field of type B will be initialized without using arranger BArranger.