Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
9ab848e
Version update and exempt maven local publish task from signing
fmattos-hw Apr 30, 2019
adb8ecb
epic/HW-51230 add support paypal ui (#9)
fmattos-hw May 11, 2019
ab103e4
Preparing release beta02
fmattos-hw May 13, 2019
5b80c0c
Feature/hw 51711 get user details (#16)
fmattos-hw May 15, 2019
63c95ac
Merge branch 'development' of https://github.com/hyperwallet/hyperwal…
fmattos-hw May 15, 2019
2ca4fca
bump dev version
fmattos-hw May 15, 2019
a55e0fe
Epic/HW-52169 gql version two integration (#24)
May 22, 2019
37f66aa
Feature/hw 52575 updating ui tests (#27)
skoong May 27, 2019
adcc774
HW-53054 Re-organize package structure - core (#28)
vshcherbyna-epam May 27, 2019
32abdf8
HW-52174. Added datePicker for DateWidget (#25)
azakrevska-epam May 27, 2019
3899d12
Updating test dependencies (#32)
skoong Jun 3, 2019
a8ecd82
HW-53053: Fixing ui tests (#33)
skoong Jun 3, 2019
07dbbe4
HW-53053. Split ui modules (#29)
azakrevska-epam Jun 4, 2019
c3c384b
HW-52584 receipt list (#31)
Jun 11, 2019
6a570b8
Implement lazy loading automation and fixing lint error (#41)
skoong Jun 13, 2019
18ee56e
HW-53463, HW-53464. Updated createTransferMethod(Wire Account) and te…
azakrevska-epam Jun 13, 2019
35ef347
HW-53384: Update UI group id (#40)
vshcherbyna-epam Jun 14, 2019
4a71631
HW-53765. renamed *Util to *Utils (#45)
azakrevska-epam Jun 18, 2019
87ee60b
HW-52585 UI - Receipt Details (#42)
Jun 19, 2019
18fccd7
HW-52637 pay pal account second line (#44)
vshcherbyna-epam Jun 21, 2019
b06d464
HW-53039 receipt view ppc (#49)
Jul 2, 2019
0aea631
HW-52989. Fixed restoring tree map (#46)
azakrevska-epam Jul 3, 2019
0807dff
HW-53770: List Receipts and Transaction Details UI Changes (#55)
vshcherbyna-epam Jul 4, 2019
9602eb4
Task/hw 53039 receipt ppc ui tests (#54)
skoong Jul 4, 2019
3aa8829
HW-53657. UI processing time (#52)
azakrevska-epam Jul 5, 2019
68b492a
Adding scroll to espresso test (#61)
skoong Jul 11, 2019
d678348
HW-52639 default to wallet country for tmc selection (#62)
Jul 15, 2019
49dd77e
HW-54223 multi project (#57)
azakrevska-epam Jul 22, 2019
aa085bc
preparing release beta03
fmattos-hw Jul 22, 2019
ab5f787
merge for next release
fmattos-hw Jul 22, 2019
9b94a9a
fix errors after merge
fmattos-hw Jul 22, 2019
663addc
update release version
fmattos-hw Jul 22, 2019
dacec28
HW-53911 sts model update on ui (#76)
Jul 23, 2019
5ecea23
HW-54791 Create Transfer repository module (#73)
vshcherbyna-epam Jul 23, 2019
59fcf27
Task/single jacoco settings (#78)
azakrevska-epam Jul 29, 2019
0155f92
Moving test util and rules into separate module (#80)
skoong Jul 31, 2019
56a7004
Adding missing label ids (#87)
skoong Aug 6, 2019
c4ac1ab
HW-53670 create transfer (#81)
Aug 9, 2019
66beb67
HW-55069 Transfer ui error handling (#88)
Aug 13, 2019
9790cf2
HW-54689 Russia country Taxid,KPP field id created (#90)
vaprakasam-altmtrk Aug 13, 2019
96123d9
HW-53676 Processing confirmation (#89)
Aug 16, 2019
7718d99
bugfix HW-54358 Transfer-to-Paypal-Account & Bank-Card-mapping in res…
pasohan-altmtrk Aug 22, 2019
1d1cbef
HW-53672 Improve component gpu rendering (#94)
Aug 26, 2019
43bbe49
HW-52024 User is able to click on Country and Currency selections whi…
Aug 27, 2019
829918b
HW-53672 add transfer destination (#92)
Aug 27, 2019
c352642
HW-52801 display error dialog in add transfer field unmapped (#99)
Aug 28, 2019
d109983
Removed jacoco exclusion from receiptui module (#93)
vaprakasam-altmtrk Aug 29, 2019
9337121
Updated list transfer method url parameter(limit,orderby) (#97)
vaprakasam-altmtrk Aug 29, 2019
d9bcbcf
HW-54956-Create-Util-Class-For-initFragment-showError (#96)
manikandan-altmtrk Aug 30, 2019
aafbdfb
bugfix/HW-56160 fix data parsing validation (#101)
fmattos-hw Sep 6, 2019
8e2eac2
HW-56155 error message update bugfix (#102)
fmattos-hw Oct 7, 2019
d8d0505
HW-56154 add warning message when fx changes (#103)
fmattos-hw Oct 8, 2019
ced5a11
Adding the missing textAppearance values for transfer (#105)
skoong Oct 9, 2019
ece7356
merge for beta04 release
fmattos-hw Oct 10, 2019
4f1f716
Task/hw 56866 documentation android ui (#104)
dnip-hw Oct 10, 2019
22b98ae
new version update
fmattos-hw Oct 10, 2019
b49cef3
Merge branch 'development' of https://github.com/hyperwallet/hyperwal…
fmattos-hw Oct 10, 2019
700bddc
Adding scroll action on display assertions (#108)
skoong Oct 25, 2019
0c9460b
Adding ids for residence field (#107)
skoong Oct 28, 2019
3ac3777
HW-57660 UI SDK support for Insight integration, shell methods (#109)
dnip-hw Oct 28, 2019
5f7b34f
Text Inputs in Transfer UI Are Incorrectly Displayed in Landscape Mod…
manikandan-altmtrk Nov 15, 2019
77aac66
HW-57660 UI SDK Insights integration (#113)
dnip-hw Nov 26, 2019
337d738
adding custom task to generate one javadoc to all projects (#130)
fmattos-hw Nov 27, 2019
b9d9f7c
Updated string.xml for paypal_account field (#129)
vaprakasam-altmtrk Nov 28, 2019
5c57d9c
Replacing the enum with StringDef and its usage (#128)
pasohan-altmtrk Dec 2, 2019
e393b43
Bugfix/HW-55981 App Crashes Fix when Filtering selection list (#131)
pasohan-altmtrk Dec 4, 2019
e6988d7
Task/hw 57735 input formatting (#127)
dnip-hw Dec 6, 2019
2f25dfa
remove test from multiple classes (#135)
fmattos-hw Dec 11, 2019
85a8619
HW-58728 styling update (#133)
Dec 12, 2019
9b424f4
HW-54725 Selection Widget, prevent popup when using search. Fix rando…
dnip-hw Dec 13, 2019
b611072
HW-58715-impression-event-created-before-page-load-issue- fixed (#136)
manikandan-altmtrk Dec 14, 2019
5833271
Updating insight configuration method after change in core (#141)
skoong Dec 17, 2019
135d2dc
HW-55799 throw error on transfer type not supported (#139)
Dec 19, 2019
64a16f4
HW-54725-Add transfer method selection widget search automation (#142)
skoong Dec 19, 2019
e6fb5e5
HW-54817 bottom border select transfer update (#137)
Dec 19, 2019
13ed6bd
bugfix/HW-51860 making selection widget title text size consistent (#…
Dec 19, 2019
9567147
HW-58541 valueChanged on widget now only validates single item traver…
dnip-hw Dec 20, 2019
0d656cd
HW-59339 Transfer All Funds Toggle Flickers after Creating a Transfer…
manikandan-altmtrk Dec 30, 2019
1463066
bugfix/HW-59327 keyboard input text control (#144)
Dec 30, 2019
de8c802
HW-58636 Updating publish gradle script (#147)
skoong Dec 31, 2019
874c179
HW-58636 Adding timeout select insight test (#148)
skoong Jan 2, 2020
d6be7c6
Bugfix/HW-58932 partial values display fix (#146)
Jan 2, 2020
5d36f06
task/HW-59599 deprecate and sunset navigator interface (#149)
Jan 8, 2020
926e4e6
Expose initialization method in View Model classes (#150)
manikandan-altmtrk Jan 14, 2020
8d9fa64
Removing double underscore (#153)
skoong Jan 22, 2020
488bae8
HW-60052 implementation and unit test completed (#152)
manikandan-altmtrk Jan 22, 2020
13433c1
task/HW-60059-TimeZone-Adjustment-for-ListPrepaidCardReceipts-Test (#…
vinotb-altmtrk Jan 24, 2020
2e89f78
HW-59974 Add static modifier in ListTransferDestinationFragment inner…
manikandan-altmtrk Jan 27, 2020
6ae8976
HW-60014 Schedule Transfer Activity result as Cancel(default) when na…
manikandan-altmtrk Jan 27, 2020
97394bf
HW-60017 [Android] No Progress Indicator Displayed when Retrying Tran…
Feb 6, 2020
d9d3cb8
HW-59945 - progressbar issue fix. also progress bar color fix in list…
manikandan-altmtrk Feb 11, 2020
3deedfc
feature/HW-60042 support view model refreshes (#156)
Feb 11, 2020
ee2ccec
Task/hw 60987 expose clear instance (#160)
manikandan-altmtrk Feb 21, 2020
af3fae0
HW-60569 - font file updated (#159)
manikandan-altmtrk Feb 21, 2020
6b66b73
Task/hw 60978 update ui sdk to broadcast authentication error (#161)
manikandan-altmtrk Mar 13, 2020
a672941
HW-61225- HyperwalletTransferMethodUi getDefault implementation (#162)
manikandan-altmtrk Mar 18, 2020
6f7637f
HW-61255 UI SDK clearInstance (#163)
vwagh-hw Mar 24, 2020
fa68995
HW-60061-Change unrealistic token (#165)
manikandan-altmtrk Apr 8, 2020
3d20c35
Task/hw 60019 error text for paypal account is cutoff (#164)
manikandan-altmtrk Apr 8, 2020
148cb8a
merge from master, update project version
jsaini-hw May 21, 2020
6da25c3
updated ReadMe file
jsaini-hw May 22, 2020
62163f4
Merge branch 'master' of https://github.com/hyperwallet/hyperwallet-a…
jsaini-hw May 22, 2020
05d84c1
HW-63977- restrict copy and cut options ON Add transfer method screen…
manikandan-altmtrk Jun 3, 2020
b9ca8c6
Merge branches 'development' and 'master' of https://github.com/hyper…
jsaini-hw Jun 11, 2020
4e47edc
HW-63798- Dashboard UI update (#169)
manikandan-altmtrk Jun 16, 2020
c10de92
HW-63797 Changing error dialog button label (#170)
vwagh-hw Jun 16, 2020
f465c83
feature/HW-64179 transfer funds ux update (#171)
Jul 3, 2020
3109bd4
HW-64846 Update Icons MVP (#172)
vwagh-hw Jul 8, 2020
4966513
feature/HW-64672 transactions ux refresh (#173)
Jul 14, 2020
8fdd269
feature/HW-64668 transfer method selection ux update (#174)
Jul 15, 2020
466e33a
HW-64482 [Android] Disable Screenshot (#175)
Jul 21, 2020
66d165d
feature/HW-64925 add transfer ui update (#176)
Jul 24, 2020
5745d1b
HW-62183 [Android] Update App Configuration Settings to only allow Po…
Jul 29, 2020
3432e78
feature/HW-64673 manage transfer method ux update (#177)
Jul 29, 2020
d9ffb07
feature/HW-59338 change behaviour on create transfer method from tran…
Aug 11, 2020
51d22da
[Android]Feedback for UX and Content review (#180)
Aug 19, 2020
1b160a9
Task/merge back release 1.0.0 beta06 (#182)
Aug 27, 2020
c70809d
Merge branch 'master' of https://github.com/hyperwallet/hyperwallet-a…
jsaini-hw Aug 27, 2020
7850c5c
update button style (#183)
vwagh-hw Sep 2, 2020
ab7c4f4
Updating version (#184)
vwagh-hw Sep 11, 2020
aac9ed0
task/HW-67590 update content for new receipt types (#185)
peter-joseph Sep 18, 2020
8d1fc2b
Feature/hw 66662 manage transfer method (#187)
shanavas123 Sep 29, 2020
bbbbb27
DTSERWFOUR-7 Manage Venmo as a transfer method (#191)
vwagh-hw Oct 9, 2020
ad5eaf9
DTSERWFOUR-3 create transfer prepaid card-ppc repository added (#188)
shanavas123 Oct 15, 2020
48bc62e
Task/dtserwfour 5 create transfer confirm details information (#195)
shanavas123 Oct 21, 2020
e3cb4d5
DTSERWFOUR-2 Transaction Screen - Display Prepaid Card Transactions (…
rajkumar-balakrishnasamy Oct 22, 2020
33c30ab
DTSERWFOUR-98 Enable Spanish Translations for app and ui sdk (#194)
pdamodarannair Oct 23, 2020
9dbea15
DTSERWFOUR-146 - Fixed the network connection error dialog (#199)
rajkumar-balakrishnasamy Oct 27, 2020
82d273d
Task/dtserwfour 5 create transfer confirm details information ui test…
malaw-hw Oct 28, 2020
4e3f502
DTSERWFOUR-46-Prepaid-card-transfer-return-not-mapped (#200)
pdamodarannair Nov 4, 2020
a8b9b07
updated all content required for GA release (#202)
jsaini-hw Nov 5, 2020
d9c2258
DTSERWFOUR-24 Create Transfer - Display correct formatting for suppor…
shanavas123 Nov 10, 2020
a861d35
DTSERWFOUR-126 Changing Account causes Amount and note to reset (#204)
rajkumar-balakrishnasamy Nov 10, 2020
08f9c1b
DTSERWFOUR-86-Display-correct-formatting-for-supported-currencies (tr…
pdamodarannair Nov 11, 2020
5cc2847
DTSERWFOUR-23 - Updated the currency formating in dashboard #103 (#201)
rajkumar-balakrishnasamy Nov 11, 2020
7b3c7fc
fixing placement of + icon (#207)
vwagh-hw Nov 19, 2020
41f5247
DTSERWFOUR-85-update-target-API-level-to-29-for-UI-SDK (#208)
shanavas123 Nov 20, 2020
cca8c67
DTSERWFOUR-167 - Add localization string for 33 languages for commonu…
rajkumar-balakrishnasamy Nov 21, 2020
32b10fb
DTSERWFOUR-139 - On navigation refreshed the home, create transfer & …
rajkumar-balakrishnasamy Nov 24, 2020
6da834e
DTSERWFOUR-147-Alignment-Bug-fixes - Incorrect Spacing between Subhea…
pdamodarannair Nov 24, 2020
45f85c0
bug/DTSERWFOUR-30-transactions-Screen-Minimize-header (#212)
pdamodarannair Nov 24, 2020
93e9b18
Dtserwfour 170 remaining screen updates (#209)
pdamodarannair Nov 25, 2020
bfb0993
Revert "bug/DTSERWFOUR-30-transactions-Screen-Minimize-header (#212)"…
vwagh-hw Nov 25, 2020
ac040fb
Merge branch 'master' into development
vwagh-hw Nov 26, 2020
2447edc
removing incorrect proguard info
vwagh-hw Nov 26, 2020
ed73859
DTSERWFOUR -184-update-project-version-to-1.0.0-beta08-SNAPSHOT. (#220)
shanavas123 Dec 2, 2020
31a0ca5
Task/dtserwfour 184 support paper check in ui sdk (#219)
shanavas123 Dec 4, 2020
d71521c
bug/DTSERWFOUR-30-transactions-Screen-Minimize-header-Transfer-Screen…
pdamodarannair Dec 4, 2020
5209587
Task/dtserwfour 189 labels should wrap to next line (#217)
shanavas123 Dec 5, 2020
3e31518
task/DTSERWFOUR-142-wrap-truncated-headers - fixes (#221)
pdamodarannair Dec 9, 2020
6aecd2a
Task/dtserwfour 175 transaction section label is not displayed in som…
shanavas123 Dec 17, 2020
0e57b69
Dtserwfour 232 fix failed test (#229)
ShravanKumarSidigum Dec 18, 2020
90a3b6b
task/DTSERWFOUR-123-Transfer-Funds-Zero-Funds (#223)
pdamodarannair Dec 18, 2020
bb8b0cb
DTSERWFOUR -210 - Update transfer method information (#222)
shanavas123 Dec 21, 2020
c1ff3d2
Automation completed for update transfer methods like bankaccount, ve…
ShravanKumarSidigum Dec 22, 2020
12ed23b
Dtserwfour 289 venmo automation UI sdk fixes (#231)
ShravanKumarSidigum Jan 7, 2021
9647318
task/DTSERWFOUR-280-Update-content-strings modified strings (#232)
pdamodarannair Jan 28, 2021
e7c4472
DTSERWFOUR-234 - Add secure flag for all the screens. (#233)
rajkumar-balakrishnasamy Jan 28, 2021
418c145
DTSERWFOUR-233 - Update Available Funds icon. (#234)
rajkumar-balakrishnasamy Jan 28, 2021
6be0e62
Task/dtserwfour 306 merge back to development UI sdk (#236)
malaw-hw Feb 2, 2021
77ee0ba
Feature/dtserwfour 395 upload translated strings (#239)
shanavas123 Feb 12, 2021
e35a768
Merge remote-tracking branch 'remotes/origin/master' into development
vwagh-hw Feb 13, 2021
01bf0e5
Dtserwfour s203 (#243)
shanavas123 Feb 17, 2021
9d546f8
bug/DTSERWFOUR-410-Update-Vemo-transfer-icon icon changed (#244)
pdamodarannair Feb 22, 2021
5dfe4ad
Bug/dtserwfour 411 fix fees and processing time display (#248)
shanavas123 Feb 26, 2021
2867f35
bug/DTSERWFOUR-410-update-vemo-transfer-method updated moneygram icon…
pdamodarannair Feb 26, 2021
3b226a0
DTSERWFOUR-382-android-transaction-list-is -not-loaded (#245)
shanavas123 Feb 26, 2021
ccea867
DTSERWFOUR-387-edit-venmo account partial edit is not successful (#246)
shanavas123 Mar 2, 2021
924d451
Bug/dtserwfour 373 remove empty state button (#247)
pdamodarannair Mar 3, 2021
2061128
DTSERWFOUR-460-Confirm details - Add -TRANSFER-TO (#251)
shanavas123 Mar 11, 2021
b534822
Task/dtserwfour 235 display currency codes beneath available funds la…
shanavas123 Mar 16, 2021
c09a183
S206 (#256)
shanavas123 Mar 30, 2021
6cdfdd7
DTSERWFOUR-467 merge back to development (#258)
vwagh-hw Mar 31, 2021
0b89f4e
DTSERWFOUR-509-Update prepaid-card-display-on-transfer-from-and-To (#…
shanavas123 Apr 12, 2021
aaff7e3
Task/dtserwfour 553 update transfer fee zero state (#260)
shanavas123 Apr 13, 2021
080b222
DTSERWFOUR-583 Re-enable screenshots for all pages except sensitive o…
shanavas123 Apr 19, 2021
fd5dded
DTSERWFOUR-593-Add-empty-cell-to-manage-your-transfer-methods-page-wh…
shanavas123 Apr 21, 2021
9ac7059
DTSERWFOUR-563-Upgrade-SDK-app-demo-sandbox (#263)
shanavas123 Apr 27, 2021
c25ee5a
DTSERWFOUR-558 rounding fx value (#264)
shanavas123 May 20, 2021
f01a236
Task/dtserwfour 561 single app program email and program selection vi…
shanavas123 May 21, 2021
fe72c1f
DTSERWFOUR-557  Currency-format-in-Transfer-Amount-is-not-getting-upd…
shanavas123 May 31, 2021
fcc82ea
DTSERWFOUR-251-Update-existing-TransferMethodConfigurationField-to-us…
shanavas123 Jun 1, 2021
bff6a4e
DTSERWFOUR-693-Update-Select-Transfer-Method-graphql-call-to-fetch-fe…
shanavas123 Jun 22, 2021
edea38d
DTSERWFOUR-251-TransferMethodConfigurationField-to-use-the-latest-que…
shanavas123 Jun 29, 2021
5c3c8dd
Dtserwfour 688 incorrect formatting for fx to section (#270)
shanavas123 Jul 1, 2021
064dc21
Release beta-11 (#272)
shanavas123 Jul 5, 2021
91839e9
updating CHANGELOG.md
vwagh-hw Jul 5, 2021
70ed242
Merge branches 'development' and 'master' of https://github.com/hyper…
vwagh-hw Jul 5, 2021
d4f8c6a
Merge branches 'development' and 'master' of https://github.com/hyper…
vwagh-hw Jul 6, 2021
b51b851
Update SNAPSHOT (#274)
shanavas123 Jul 8, 2021
1aae180
DTSERWTHRE-750 Remove default country logic during Transfer method cr…
vwagh-hw Aug 9, 2021
52f9a20
DTSERWTHRE-750 Tag/1.0.0 beta12
vwagh-hw Aug 9, 2021
f272ec5
correct core sdk version
vwagh-hw Aug 9, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

[1.0.0-beta12](https://github.com/hyperwallet/hyperwallet-android-ui-sdk/releases/tag/1.0.0-beta12)
-------------------
* Bug fix

[1.0.0-beta11](https://github.com/hyperwallet/hyperwallet-android-ui-sdk/releases/tag/1.0.0-beta11)
-------------------
* Fixed currency formatting issues
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Note that this SDK is geared towards those who need both backend data and UI fea
To install Hyperwallet UI SDK, you just need to add the dependencies into your build.gradle file in Android Studio (or Gradle). For example:

```bash
api 'com.hyperwallet.android.ui:transfermethodui:1.0.0-beta11'
api 'com.hyperwallet.android.ui:receiptui:1.0.0-beta11'
api 'com.hyperwallet.android.ui:transferui:1.0.0-beta11'
api 'com.hyperwallet.android.ui:transfermethodui:1.0.0-beta12'
api 'com.hyperwallet.android.ui:receiptui:1.0.0-beta12'
api 'com.hyperwallet.android.ui:transferui:1.0.0-beta12'
```

### Proguard
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ allprojects {

}

project.version = "1.0.0-beta11"
project.version = "1.0.0-beta12"

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@

public class SelectTransferMethodPresenter implements SelectTransferMethodContract.Presenter {

private static final String DEFAULT_COUNTRY_CODE = "US";

private final TransferMethodConfigurationRepository mTransferMethodConfigurationRepository;
private final UserRepository mUserRepository;
private final SelectTransferMethodContract.View mView;
Expand Down Expand Up @@ -82,7 +80,7 @@ public void onKeysLoaded(@Nullable final HyperwalletTransferMethodConfigurationK
: key.getCountry(countryCode);

if (country == null) { // param and user country is null
country = key.getCountry(DEFAULT_COUNTRY_CODE);
country = key.getCountries().iterator().next();
}

String currencyCodeString = currencyCode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import com.hyperwallet.android.ui.user.repository.UserRepositoryImpl;

import org.hamcrest.Matchers;
import org.json.JSONException;
import org.json.JSONObject;
import org.junit.Before;
import org.junit.Rule;
Expand Down Expand Up @@ -1073,4 +1074,58 @@ public Object answer(InvocationOnMock invocation) {
selectTransferMethodPresenter.loadTransferMethodTypes(false, "CA", "CAD");
verify(view).showErrorLoadTransferMethodTypes(ArgumentMatchers.<Error>anyList());
}

@Test
public void loadTransferMethodConfigurationKeys_userWithCountryNotPresentInProgramCountries() throws JSONException {
// User's country is Albania which is not present in mResult successful_tmc_keys_response.json
String userResponseBody = externalResourceManager.getResourceContent("user_al_response.json");
final JSONObject userJsonObject = new JSONObject(userResponseBody);
final User user = new User(userJsonObject);

when(view.isActive()).thenReturn(true);
doAnswer(new Answer() {
@Override
public Object answer(InvocationOnMock invocation) {
TransferMethodConfigurationRepository.LoadKeysCallback callback =
(TransferMethodConfigurationRepository.LoadKeysCallback) invocation.getArguments()[0];
callback.onKeysLoaded(mResult);
return callback;
}
}).when(mTransferMethodConfigurationRepository).getKeys(any(
TransferMethodConfigurationRepository.LoadKeysCallback.class));
doAnswer(new Answer() {
@Override
public Object answer(InvocationOnMock invocation) {
TransferMethodConfigurationRepository.LoadKeysCallback callback =
(TransferMethodConfigurationRepository.LoadKeysCallback) invocation.getArguments()[2];
callback.onKeysLoaded(mFeeAndProcessingTimeResult);
return callback;
}
}).when(mTransferMethodConfigurationRepository).getTransferMethodTypesFeeAndProcessingTime(anyString(), anyString(), any(
TransferMethodConfigurationRepository.LoadKeysCallback.class));
doAnswer(new Answer() {
@Override
public Object answer(InvocationOnMock invocation) {
UserRepository.LoadUserCallback userCallback =
(UserRepository.LoadUserCallback) invocation.getArguments()[0];
userCallback.onUserLoaded(user);
return userCallback;
}
}).when(mUserRepository).loadUser(any(
UserRepository.LoadUserCallback.class));

selectTransferMethodPresenter.loadTransferMethodConfigurationKeys(true, null, null);

// Canada is first country in successful_tmc_keys_response.json
verify(view).showTransferMethodCountry("CA");
verify(view).showTransferMethodCurrency("CAD");
verify(view).showTransferMethodTypes(ArgumentMatchers.<TransferMethodSelectionItem>anyList());
verify(view, never()).showErrorLoadTransferMethodConfigurationKeys(
ArgumentMatchers.<Error>anyList());
verify(view, never()).showErrorLoadCurrency(ArgumentMatchers.<Error>anyList());
verify(view, never()).showErrorLoadTransferMethodTypes(ArgumentMatchers.<Error>anyList());
verify(view, never()).showErrorLoadCountrySelection(ArgumentMatchers.<Error>anyList());
verify(view, never()).showErrorLoadCurrencySelection(ArgumentMatchers.<Error>anyList());
verify(view, never()).showAddTransferMethod(anyString(), anyString(), anyString(), anyString());
}
}
26 changes: 26 additions & 0 deletions transfermethodui/src/test/resources/user_al_response.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"token": "usr-token-5",
"status": "PRE_ACTIVATED",
"createdOn": "2017-10-30T22:15:45",
"clientUserId": "123456",
"profileType": "INDIVIDUAL",
"firstName": "Person",
"lastName": "FromAlbania",
"dateOfBirth": "1991-01-01",
"email": "user+5satF1xV@hyperwallet.com",
"addressLine1": "950 Granville",
"city": "Gjirokaster",
"stateProvince": "Gjirokaster",
"country": "AL",
"postalCode": "443001",
"language": "en",
"programToken": "prg-token-2",
"links": [
{
"params": {
"rel": "self"
},
"href": "https://localhost/rest/v3/users/usr-token-5"
}
]
}