I get a nice randomized model, but I need to change some of the parameters depending by the test. Can I achieve that with the language from intelliJ usign something ,do not know, maybe generics, default constructor values, other?
c
Czar
01/30/2020, 8:51 AM
You could move the default parameters from
CashPeriod
constructor to
makeCashPeriod
function.
That way if you don't specify a parameter, it will be random, if you do, it will be whatever you specified.
i
ivano
01/30/2020, 9:20 AM
mmh thanks, but in this way does not work to me because