-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from uphold/enhancement/update-user-model
Update user model
- Loading branch information
Showing
4 changed files
with
20 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -274,6 +274,7 @@ public void getUserShouldReturnTheUser() throws Exception { | |
"\"email\": \"[email protected]\"," + | ||
"\"firstName\": \"foo\"," + | ||
"\"lastName\": \"bar\"," + | ||
"\"memberAt\": \"Foobar\"," + | ||
"\"name\": \"Foo Bar\"," + | ||
"\"country\": \"BAR\"," + | ||
"\"state\": \"FOO\"," + | ||
|
@@ -342,6 +343,7 @@ public Promise<User> call(UpholdRestAdapter adapter) { | |
Assert.assertEquals(user.getEmail(), "[email protected]"); | ||
Assert.assertEquals(user.getFirstName(), "foo"); | ||
Assert.assertEquals(user.getLastName(), "bar"); | ||
Assert.assertEquals(user.getMemberAt(), "Foobar"); | ||
Assert.assertEquals(user.getName(), "Foo Bar"); | ||
Assert.assertEquals(user.getSettings().getCurrency(), "USD"); | ||
Assert.assertEquals(user.getSettings().getIntl().getDateTimeFormat().getLocale(), "en-US"); | ||
|
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 |
---|---|---|
|
@@ -37,7 +37,7 @@ public void shouldBeSerializable() { | |
Otp otp = new Otp(new Login(false), new Transactions(new Send(false), new Transfer(false), new Withdraw(new Crypto(true)))); | ||
Settings settings = new Settings("FIZ", true, false, internationalizationUserSettings, otp, "FUZ"); | ||
ArrayList<String> currencies = new ArrayList<>(); | ||
User user = new User("foobar", currencies, "[email protected]", "foo", "bar", "Foo Bar", settings, "foobiz", "foobar", "fizbiz"); | ||
User user = new User("foobar", currencies, "[email protected]", "foo", "bar", "foobar", "Foo Bar", settings, "foobiz", "foobar", "fizbiz"); | ||
|
||
currencies.add("EUR"); | ||
currencies.add("USD"); | ||
|
@@ -52,6 +52,7 @@ public void shouldBeSerializable() { | |
Assert.assertEquals(user.getEmail(), deserializedUser.getEmail()); | ||
Assert.assertEquals(user.getFirstName(), deserializedUser.getFirstName()); | ||
Assert.assertEquals(user.getLastName(), deserializedUser.getLastName()); | ||
Assert.assertEquals(user.getMemberAt(), deserializedUser.getMemberAt()); | ||
Assert.assertEquals(user.getName(), deserializedUser.getName()); | ||
Assert.assertEquals(user.getSettings().getCurrency(), deserializedUser.getSettings().getCurrency()); | ||
Assert.assertEquals(user.getSettings().getHasNewsSubscription(), deserializedUser.getSettings().getHasNewsSubscription()); | ||
|