File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
main/java/com/contentstack/cms
test/java/com/contentstack/cms/user Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11package com .contentstack .cms .core ;
22
33public interface Callback {
4+
45 void result ();
6+
57 void fail ();
68}
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ Call<ResponseBody> fetch(
2020
2121 @ GET ("stacks" )
2222 Call <ResponseBody > fetch (
23- @ Header ("api_key" ) String apiKey ,
24- @ QueryMap Map <String , Boolean > queryParams );
23+ @ Header ("api_key" ) String apiKey ,
24+ @ QueryMap Map <String , Boolean > queryParams );
2525
2626 @ GET ("stacks" )
2727 Call <ResponseBody > fetch (
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ public interface UserService {
2121
2222 @ POST ("user/activate/{user_activation_token}" )
2323 Call <ResponseBody > activateUser (
24- @ Path ("user_activation_token" ) String activationToken ,
25- @ Body RequestBody body );
24+ @ Path ("user_activation_token" ) String activationToken ,
25+ @ Body RequestBody body );
2626
2727 @ POST ("user/forgot_password" )
2828 Call <ResponseBody > requestPassword (@ Body RequestBody body );
@@ -31,14 +31,12 @@ Call<ResponseBody> activateUser(
3131 Call <ResponseBody > resetPassword (@ Body RequestBody body );
3232
3333 @ DELETE ("user-session" )
34- Call <ResponseBody > logout (
35- @ Header ("authtoken" ) String authtoken );
34+ Call <ResponseBody > logout (@ Header ("authtoken" ) String authtoken );
3635
3736 @ DELETE ("user-session" )
3837 Call <ResponseBody > logout ();
3938
4039 @ GET ("user" )
41- Call <ResponseBody > getUserOrganization (
42- @ QueryMap Map <String , Object > options );
40+ Call <ResponseBody > getUserOrganization (@ QueryMap Map <String , Object > options );
4341
4442}
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ void testUserOrg() throws IOException {
6767 if (response .isSuccessful ()) {
6868 JsonObject user = toJson (response );
6969 Assertions .assertTrue (user .getAsJsonObject ("user" ).has ("organizations" ));
70- Assertions .assertEquals (9 ,
70+ Assertions .assertEquals (10 ,
7171 user .getAsJsonObject ("user" )
7272 .getAsJsonArray ("organizations" ).size ());
7373 }
You can’t perform that action at this time.
0 commit comments