Utility class to generate junit assertion script for the given object.
String assertionScript;
assertionScript = new AssertionScriptGenerator(actual, "actual").generateAssertionScript();
//or
assertionScript = new AssertionScriptGenerator(result).generateAssertionScript();
System.out.println(assertionScript);
Generate / Create junit test case.
Do the relevant mocking or data creation for the input variable.
Use AssertionScriptGenerator
to generate assertion script form the actual returned object.
Run the test script and copy the assertion script printed in the console.
Replace the AssertionScriptGenerator generation with the generated code.
By contributing your code, you agree to license your contribution under the MIT License.