@Test public void getStatus_NullResponse_OperationFailedException() throws Exception { TestUtils.enqueueEmptyResponse(mockWebServer); expectedEx.expect(OperationFailedException.class); expectedEx.expectMessage(ACCOUNT_ID); getStatus(ACCOUNT_ID); }
@AccountStatus int getStatus(@NonNull String accountId) throws OperationFailedException { try { getBalance(accountId); return AccountStatus.CREATED; } catch (AccountNotFoundException e) { return AccountStatus.NOT_CREATED; } }
AccountInfoRetriever { @AccountStatus int getStatus(@NonNull String accountId) throws OperationFailedException { try { getBalance(accountId); return AccountStatus.CREATED; } catch (AccountNotFoundException e) { return AccountStatus.NOT_CREATED; } } }
AccountInfoRetriever { @AccountStatus int getStatus(@NonNull String accountId) throws OperationFailedException { try { getBalance(accountId); return AccountStatus.CREATED; } catch (AccountNotFoundException e) { return AccountStatus.NOT_CREATED; } } AccountInfoRetriever(Server server); }
AccountInfoRetriever { @AccountStatus int getStatus(@NonNull String accountId) throws OperationFailedException { try { getBalance(accountId); return AccountStatus.CREATED; } catch (AccountNotFoundException e) { return AccountStatus.NOT_CREATED; } } AccountInfoRetriever(Server server);  }
AccountInfoRetriever { @AccountStatus int getStatus(@NonNull String accountId) throws OperationFailedException { try { getBalance(accountId); return AccountStatus.CREATED; } catch (AccountNotFoundException e) { return AccountStatus.NOT_CREATED; } } AccountInfoRetriever(Server server);   }