message: avoid needing to catch JSONException in static init of json strings
diff: @@ -56,7 +56,8 @@ public class IndyIntegrationTest {
  protected String XYZ_SCHEMA_ATTRIBUTES = "[\"status\", \"period\"]";
  protected String REVOC_REG_TYPE = "CL_ACCUM";
  protected String SIGNATURE_TYPE = "CL";
  - protected String TAILS_WRITER_CONFIG = new JSONObject(String.format("{\"base_dir\":\"%s\", \"uri_pattern\":\"\"}", getIndyHomePath("tails")).replace('\\', '/')).toString();
  + protected String TAILS_WRITER_CONFIG =
  + "{ \"base_dir\":" + getIndyHomePath("tails").replace('\\', '/') + ", \"uri_pattern\":\"\"}";
  protected String REV_CRED_DEF_CONFIG = "{\"support_revocation\":true}";
  protected String GVT_CRED_VALUES = "{\n" +
  " \"sex\": {\"raw\": \"male\", \"encoded\": \"5944657099558967239210949258394887428692050081607692519917050\"},\n" +
  @@ -64,20 +65,11 @@ public class IndyIntegrationTest {
  " \"height\": {\"raw\": \"175\", \"encoded\": \"175\"},\n" +
  " \"age\": {\"raw\": \"28\", \"encoded\": \"28\"}\n" +
  " }";
  - protected static final String WALLET_CONFIG =
  - new JSONObject()
  - .put("id", WALLET)
  - .put("storage_type", TYPE)
  - .toString();
  - protected static final String WALLET_CREDENTIALS =
  - new JSONObject()
  - .put("key", "key")
  - .toString();
  - protected static final String PLUGGED_WALLET_CONFIG =
  - new JSONObject()
  - .put("id", WALLET)
  - .put("storage_type", "unknown_type")
  - .toString();
  + protected static final String WALLET_CONFIG = "{ \"id\":" + WALLET + ", \"storage_type\":" + TYPE + '}';
  +
  + protected static final String WALLET_CREDENTIALS = "{ \"key\":\"key\"}";
  +
  + protected static final String PLUGGED_WALLET_CONFIG = "{ \"id\":" + WALLET + ", \"storage_type\":\"unknown_type\"}";
  protected int PROTOCOL_VERSION = 2;
  @@ -93,12 +85,7 @@ public class IndyIntegrationTest {
  protected static final String EXPORT_KEY = "export_key";
  protected static final String EXPORT_PATH = getTmpPath("export_wallet");
  - protected static final String EXPORT_CONFIG_JSON =
  - new JSONObject()
  - .put("key", EXPORT_KEY)
  - .put("path", EXPORT_PATH)
  - .toString();
  -
  + protected static final String EXPORT_CONFIG_JSON = "{ \"key\":" + EXPORT_KEY + ", \"path\":" + EXPORT_PATH + '}';
  @Rule
  public ExpectedException thrown = ExpectedException.none();
  