public void testArrayListToJsonArrayConversion(){
  try {
    JSONArray array=StoreRetrieveData.toJSONArray(mTestData);
    assertEquals(mTestData.size(),array.length());
  }
 catch (  Exception e) {
    fail("Exception thrown when converting to JSONArray: " + e.getMessage());
  }
}

public void testArrayListToJsonArrayConversion ( ) { try { JSONArray array = StoreRetrieveData . toJSONArray ( mTestData ) ; assertEquals ( mTestData . size ( ) , array . length ( ) ) ; } catch ( Exception e ) { fail ( "Exception thrown when converting to JSONArray: " + e . getMessage ( ) ) ; } }
ensure jsonarray conversion works as intended
