Background: We have a function which takes input and performs validation on each digit and finally responds with true of false output [ if each digit meets all validation true would be returned else false ]. Tried generating automated junit cases through Evosuite, Though it generated the cases with 65% of coverage all the cases were negative Testcases(return value = false) as random values generated didn't meet the criteria, Positive case (return value=true) were not generated.
Question: Would it be possible to configure the input values to be used for generating the automated Junit cases, which would help in getting maximum coverage.
Following option was tried didn't help much.
Primitive pool option: Declared set a static string in class under test and used option -Dprimitive_pool=1.0 while generating the testcases, TestCases generated didn't use these value and there was no difference in coverage or number of testcases with this approach.Pls let me know if any additional configuration to be made to use those values or other options to configure the input for Test Case generation.
Static Strings declared in class under Test:
public static final String s1="9783161484100";
public static final String s2="9783161484100";
public static final String s3="0590764845";
public static final String s4="059076484X";