public void testPreconditions(){
  StoreRetrieveData dataStorage=getDataStorage();
  ArrayList<ToDoItem> items=null;
  try {
    items=dataStorage.loadFromFile();
  }
 catch (  Exception e) {
    fail("Couldn't read from data storage: " + e.getMessage());
  }
  assertEquals(0,items.size());
}

public void testPreconditions ( ) { StoreRetrieveData dataStorage = getDataStorage ( ) ; ArrayList < ToDoItem > items = null ; try { items = dataStorage . loadFromFile ( ) ; } catch ( Exception e ) { fail ( "Couldn't read from data storage: " + e . getMessage ( ) ) ; } assertEquals ( 0 , items . size ( ) ) ; }
we should have an empty data storage at hand for the starters
