File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
src/test/java/com/box/sdk Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 3030import java .util .Collection ;
3131import java .util .HashMap ;
3232import java .util .Iterator ;
33+ import java .util .Locale ;
3334import java .util .Map ;
3435import org .hamcrest .CoreMatchers ;
3536import org .junit .Before ;
@@ -89,8 +90,7 @@ public void downloadAvatar() throws IOException {
8990 assertArrayEquals (fileByteArray , output .toByteArray ());
9091 }
9192
92- @ Test
93- public void testGetCurrentUserInfoSucceeds () {
93+ private void getCurrentUserTest () {
9494 final String userURL = "/2.0/users/me" ;
9595 final String userInfoURL = "/2.0/users/12345" ;
9696 final String userName = "Test User" ;
@@ -113,6 +113,17 @@ public void testGetCurrentUserInfoSucceeds() {
113113 assertEquals (userphoneNumber , info .getPhone ());
114114 }
115115
116+ @ Test
117+ public void testGetCurrentUserInfoSucceeds () {
118+ getCurrentUserTest ();
119+ }
120+
121+ @ Test
122+ public void testGetCurrentUserInfoOnNonUsLocaleSucceeds () {
123+ Locale .setDefault (new Locale ("tr" , "TR" ));
124+ getCurrentUserTest ();
125+ }
126+
116127 @ Test
117128 public void testGetUserInfoByIDSucceeds () {
118129 final String userID = "12345" ;
You can’t perform that action at this time.
0 commit comments