File tree Expand file tree Collapse file tree
main/java/com/mailjet/client
test/java/com/mailjet/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,8 @@ import com.mailjet.client.MailjetClient;
9393import com.mailjet.client.MailjetRequest ;
9494import com.mailjet.client.MailjetResponse ;
9595import com.mailjet.client.ClientOptions ;
96- import com.mailjet.client.resource.ApiVersion ;import com.mailjet.client.resource.Emailv31 ;
96+ import com.mailjet.client.resource.ApiVersion ;
97+ import com.mailjet.client.resource.Emailv31 ;
9798import org.json.JSONArray ;
9899import org.json.JSONObject ;
99100public class MyClass {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public final class MailjetResponseUtil {
1919 private static final int UNAUTHORIZED_STATUS = 401 ;
2020
2121 private static final String UNEXPECTED_RESPONSE_MESSAGE = "Unexpected response from the server" ;
22- private static final String UNAUTHORIZED_MESSAGE = "Unauthorized. Please,verify your access key or token for the given account" ;
22+ private static final String UNAUTHORIZED_MESSAGE = "Unauthorized. Please,verify your access key and access secret key or token for the given account" ;
2323 private static final String TOO_MANY_REQUESTS_EXCEPTION = "Too Many Requests" ;
2424 private static final String INTERNAL_SERVER_ERROR_GENERAL_EXCEPTION = "Internal Server Error: " ;
2525
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public void testUnauthorizedResponse() throws MailjetException {
136136 when (response .getBodyAsString ()).thenReturn (UNAUTHORIZED_MESSAGE );
137137 // assert
138138 expectedEx .expect (MailjetUnauthorizedException .class );
139- expectedEx .expectMessage ("Unauthorized. Please,verify your access key or token for the given account" );
139+ expectedEx .expectMessage ("Unauthorized. Please,verify your access key and access secret key or token for the given account" );
140140 // act
141141 client .post (request );
142142 }
You can’t perform that action at this time.
0 commit comments