@@ -121,35 +121,6 @@ public void testSendDeleteMessage() throws Exception {
121
121
// Gives 404 messageBirdClient.deleteMessage(mr.getId());
122
122
}
123
123
124
- @ Test
125
- public void testSendDeletePremiumMessage () throws UnauthorizedException {
126
- /* Premium is still under development */
127
- final String body = "Body test message Über € " + messageBirdMSISDN ;
128
- final String reference = "My Reference Über € " + messageBirdMSISDN ;
129
- Message message = new Message ("originator" , body , messageBirdMSISDN .toString ());
130
- message .setPremiumSMS (1008 , "new keyword" , 10.23 , 2 );
131
- message .setReference (reference );
132
- final MessageResponse mr ;
133
- try {
134
- mr = messageBirdClient .sendMessage (message );
135
- } catch (GeneralException e ) {
136
- final List <ErrorReport > result = e .getErrors ();
137
- // Exception is expected but we continue to test if the result is correct
138
- boolean hasKeywordError =false ;
139
- boolean hasShortcodeError =false ;
140
- for (final ErrorReport error : e .getErrors ()) {
141
- if ("typeDetails.keyword" .equals (error .getParameter ())) {
142
- hasKeywordError =true ;
143
- }
144
- }
145
- assertTrue ("Error report doesn't contain error about keyword" , hasKeywordError );
146
- }
147
-
148
- // Deleting of a message is not yet supported in test mode
149
- // Thread.sleep(1000);
150
- // Gives 404 messageBirdClient.deleteMessage(mr.getId());
151
- }
152
-
153
124
@ Test
154
125
public void testSendDeleteMessage1 () throws Exception {
155
126
final String body = "Body test message Über € " + messageBirdMSISDN ;
0 commit comments