@@ -171,15 +171,16 @@ public void testMultiPartFormData() {
171171 }
172172
173173 // Note: This test should be last as we are initialising OAuth App creds.
174- @ Test
175- public void testPublicOAuthFetchMessage () {
176- Twilio .init (new ClientCredentialProvider (clientId , clientSecret ), accountSid );
177- // Fetching an existing message; if this test fails, the SID might be deleted,
178- // in that case, change TWILIO_MESSAGE_SID in twilio-java repo env variables
179- Message message = Message .fetcher (messageSid ).fetch ();
180- assertNotNull (message );
181- assertTrue (message .getBody ().contains ("Where's Wallace?" ));
182- assertEquals (fromNumber , message .getFrom ().toString ());
183- assertEquals (toNumber , message .getTo ().toString ());
184- }
174+ // Disabling test as OAuth is not working.
175+ // @Test
176+ // public void testPublicOAuthFetchMessage() {
177+ // Twilio.init(new ClientCredentialProvider(clientId, clientSecret), accountSid);
178+ // // Fetching an existing message; if this test fails, the SID might be deleted,
179+ // // in that case, change TWILIO_MESSAGE_SID in twilio-java repo env variables
180+ // Message message = Message.fetcher(messageSid).fetch();
181+ // assertNotNull(message);
182+ // assertTrue(message.getBody().contains("Where's Wallace?"));
183+ // assertEquals(fromNumber, message.getFrom().toString());
184+ // assertEquals(toNumber, message.getTo().toString());
185+ // }
185186}
0 commit comments