test_class.declarator: expectedEx = ExpectedException.none()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public ExpectedException expectedEx = ExpectedException.none();
test_class.type: ExpectedException
test_class.var_name: expectedEx
test_class.file: kin-sdk/kin-sdk-lib/src/test/java/kin/sdk/KeyStoreImplTest.java
test_class.identifier: KeyStoreImplTest
test_case.body: @Test
      public void loadAccounts() throws Exception {
          KeyStoreImpl keyStore = new KeyStoreImpl(new FakeStore(), new FakeBackupRestore());
          KeyPair account1 = keyStore.newAccount();
          KeyPair account2 = keyStore.newAccount();
          List<KeyPair> accounts = keyStore.loadAccounts();
          KeyPair actualAccount1 = accounts.get(0);
          KeyPair actualAccount2 = accounts.get(1);
          assertEquals(String.valueOf(account1.getSecretSeed()), String.valueOf(actualAccount1.getSecretSeed()));
          assertEquals(String.valueOf(account2.getSecretSeed()), String.valueOf(actualAccount2.getSecretSeed()));
      }
test_case.class_method_signature: KeyStoreImplTest.loadAccounts()
test_case.full_signature: @Test public void loadAccounts()
test_case.identifier: loadAccounts
test_case.invocations: newAccount newAccount loadAccounts get get assertEquals valueOf getSecretSeed valueOf getSecretSeed assertEquals valueOf getSecretSeed valueOf getSecretSeed
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void loadAccounts()
focal_class.declarator: ENCRYPTION_VERSION_NAME = "none"
focal_class.modifier: static final
focal_class.original_string: static final String ENCRYPTION_VERSION_NAME = "none";
focal_class.type: String
focal_class.var_name: ENCRYPTION_VERSION_NAME
focal_class.declarator: STORE_KEY_ACCOUNTS = "accounts"
focal_class.modifier: static final
focal_class.original_string: static final String STORE_KEY_ACCOUNTS = "accounts";
focal_class.type: String
focal_class.var_name: STORE_KEY_ACCOUNTS
focal_class.declarator: VERSION_KEY = "encryptor_ver"
focal_class.modifier: static final
focal_class.original_string: static final String VERSION_KEY = "encryptor_ver";
focal_class.type: String
focal_class.var_name: VERSION_KEY
focal_class.declarator: JSON_KEY_ACCOUNTS_ARRAY = "accounts"
focal_class.modifier: private static final
focal_class.original_string: private static final String JSON_KEY_ACCOUNTS_ARRAY = "accounts";
focal_class.type: String
focal_class.var_name: JSON_KEY_ACCOUNTS_ARRAY
focal_class.declarator: JSON_KEY_PUBLIC_KEY = "public_key"
focal_class.modifier: private static final
focal_class.original_string: private static final String JSON_KEY_PUBLIC_KEY = "public_key";
focal_class.type: String
focal_class.var_name: JSON_KEY_PUBLIC_KEY
focal_class.declarator: JSON_KEY_ENCRYPTED_SEED = "seed"
focal_class.modifier: private static final
focal_class.original_string: private static final String JSON_KEY_ENCRYPTED_SEED = "seed";
focal_class.type: String
focal_class.var_name: JSON_KEY_ENCRYPTED_SEED
focal_class.declarator: store
focal_class.modifier: private final
focal_class.original_string: private final Store store;
focal_class.type: Store
focal_class.var_name: store
focal_class.declarator: backupRestore
focal_class.modifier: private final
focal_class.original_string: private final BackupRestore backupRestore;
focal_class.type: BackupRestore
focal_class.var_name: backupRestore
focal_class.file: kin-sdk/kin-sdk-lib/src/main/java/kin/sdk/KeyStoreImpl.java
focal_class.identifier: KeyStoreImpl
focal_class.interfaces: implements KeyStore
focal_class.class_method_signature: KeyStoreImpl.KeyStoreImpl(@NonNull Store store, @NonNull BackupRestore backupRestore)
focal_class.full_signature:   KeyStoreImpl(@NonNull Store store, @NonNull BackupRestore backupRestore)
focal_class.identifier: KeyStoreImpl
focal_class.parameters: (@NonNull Store store, @NonNull BackupRestore backupRestore)
focal_class.signature:  KeyStoreImpl(@NonNull Store store, @NonNull BackupRestore backupRestore)
focal_class.class_method_signature: KeyStoreImpl.loadAccounts()
focal_class.full_signature: @NonNull @Override public List<KeyPair> loadAccounts()
focal_class.identifier: loadAccounts
focal_class.modifiers: @NonNull @Override public
focal_class.parameters: ()
focal_class.return: List<KeyPair>
focal_class.signature: List<KeyPair> loadAccounts()
focal_class.class_method_signature: KeyStoreImpl.loadJsonArray()
focal_class.full_signature: private JSONArray loadJsonArray()
focal_class.identifier: loadJsonArray
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: JSONArray
focal_class.signature: JSONArray loadJsonArray()
focal_class.class_method_signature: KeyStoreImpl.deleteAccount(String publicAddress)
focal_class.full_signature: @Override public void deleteAccount(String publicAddress)
focal_class.identifier: deleteAccount
focal_class.modifiers: @Override public
focal_class.parameters: (String publicAddress)
focal_class.return: void
focal_class.signature: void deleteAccount(String publicAddress)
focal_class.class_method_signature: KeyStoreImpl.newAccount()
focal_class.full_signature: @Override public KeyPair newAccount()
focal_class.identifier: newAccount
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: KeyPair
focal_class.signature: KeyPair newAccount()
focal_class.class_method_signature: KeyStoreImpl.addKeyPairToStorage(KeyPair newKeyPair)
focal_class.full_signature: protected KeyPair addKeyPairToStorage(KeyPair newKeyPair)
focal_class.identifier: addKeyPairToStorage
focal_class.modifiers: protected
focal_class.parameters: (KeyPair newKeyPair)
focal_class.return: KeyPair
focal_class.signature: KeyPair addKeyPairToStorage(KeyPair newKeyPair)
focal_class.class_method_signature: KeyStoreImpl.importAccount(@NonNull String json, @NonNull String passphrase)
focal_class.full_signature: @Override public KeyPair importAccount(@NonNull String json, @NonNull String passphrase)
focal_class.identifier: importAccount
focal_class.modifiers: @Override public
focal_class.parameters: (@NonNull String json, @NonNull String passphrase)
focal_class.return: KeyPair
focal_class.signature: KeyPair importAccount(@NonNull String json, @NonNull String passphrase)
focal_class.class_method_signature: KeyStoreImpl.addKeyPairToAccountsJson(@NonNull String encryptedSeed, @NonNull String accountId)
focal_class.full_signature: private JSONObject addKeyPairToAccountsJson(@NonNull String encryptedSeed, @NonNull String accountId)
focal_class.identifier: addKeyPairToAccountsJson
focal_class.modifiers: private
focal_class.parameters: (@NonNull String encryptedSeed, @NonNull String accountId)
focal_class.return: JSONObject
focal_class.signature: JSONObject addKeyPairToAccountsJson(@NonNull String encryptedSeed, @NonNull String accountId)
focal_class.class_method_signature: KeyStoreImpl.clearAllAccounts()
focal_class.full_signature: @Override public void clearAllAccounts()
focal_class.identifier: clearAllAccounts
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clearAllAccounts()
focal_method.body: @NonNull
      @Override
      public List<KeyPair> loadAccounts() throws LoadAccountException {
          ArrayList<KeyPair> accounts = new ArrayList<>();
          try {
              JSONArray jsonArray = loadJsonArray();
              if (jsonArray != null) {
                  for (int i = 0; i < jsonArray.length(); i++) {
                      JSONObject accountJson = jsonArray.getJSONObject(i);
                      String seed = accountJson.getString(JSON_KEY_ENCRYPTED_SEED);
                      accounts.add(KeyPair.fromSecretSeed(seed));
                  }
              }
          } catch (JSONException e) {
              throw new LoadAccountException(e.getMessage(), e);
          }
          return accounts;
      }
focal_method.class_method_signature: KeyStoreImpl.loadAccounts()
focal_method.full_signature: @NonNull @Override public List<KeyPair> loadAccounts()
focal_method.identifier: loadAccounts
focal_method.invocations: loadJsonArray length getJSONObject getString add fromSecretSeed getMessage
focal_method.modifiers: @NonNull @Override public
focal_method.parameters: ()
focal_method.return: List<KeyPair>
focal_method.signature: List<KeyPair> loadAccounts()