Create TransactionRepository with String findStoredJson(). Method needs to look for Json file, if not there create it. Use previous test class. Return contents of this file. Unit test to verify what returned from file is {}. Unit test needs to pass in location of file to constructor. Needs to be different location for test so we have control over contents.
Create TransactionRepository with
String findStoredJson()
. Method needs to look for Json file, if not there create it. Use previous test class. Return contents of this file. Unit test to verify what returned from file is{}
. Unit test needs to pass in location of file to constructor. Needs to be different location for test so we have control over contents.