Class RecordReflectionUtils
java.lang.Object
com.ocadotechnology.gembus.test.easyrandom.RecordReflectionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Object[]
arrangeRecordConstructorParams
(Class<T> recordType, Function<RecordComponent, Object> arrangeRandom) static <T> T
generateRecord
(Class<T> type, Function<RecordComponent, Object> recordParamsCreator) static <T> T
instantiateRecord
(Class<T> recordType, Object[] constructorParameters)
-
Constructor Details
-
RecordReflectionUtils
public RecordReflectionUtils()
-
-
Method Details
-
generateRecord
public static <T> T generateRecord(Class<T> type, Function<RecordComponent, Object> recordParamsCreator) -
instantiateRecord
-
arrangeRecordConstructorParams
public static <T> Object[] arrangeRecordConstructorParams(Class<T> recordType, Function<RecordComponent, Object> arrangeRandom)
-