-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Convert version sdk to string * Fix ut * Change SDK int to release version * Fix validation: We need to check if the feature is enabled in settings to avoid overwriting the variable. * Revert version Release to SDK int and cast it to string
- Loading branch information
1 parent
2b7ff74
commit 75e34a8
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,7 +123,7 @@ public void createRequestBody_sets_userAuthenticationEmail_when_not_null() throw | |
|
||
@Test | ||
public void createRequestBody_sets_enablePayPalSwitch_and_userAuthenticationEmail_not_null() throws JSONException { | ||
int versionSDK = Build.VERSION.SDK_INT; | ||
String versionSDK = String.valueOf(Build.VERSION.SDK_INT); | ||
String payerEmail = "[email protected]"; | ||
PayPalVaultRequest request = new PayPalVaultRequest(true); | ||
|
||
|
@@ -139,7 +139,7 @@ public void createRequestBody_sets_enablePayPalSwitch_and_userAuthenticationEmai | |
|
||
assertTrue(requestBody.contains("\"launch_paypal_app\":true")); | ||
assertTrue(requestBody.contains("\"os_type\":" + "\"Android\"")); | ||
assertTrue(requestBody.contains("\"os_version\":" + versionSDK)); | ||
assertTrue(requestBody.contains("\"os_version\":" + "\"" + versionSDK + "\"")); | ||
assertTrue(requestBody.contains("\"merchant_app_return_url\":" + "\"universal_url\"")); | ||
} | ||
} |