File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/test/java/com/microsoft/graph/functional Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 4343import com .microsoft .graph .models .extensions .User ;
4444import com .microsoft .graph .models .generated .AttachmentType ;
4545import com .microsoft .graph .models .generated .BodyType ;
46- import com .microsoft .graph .options .QueryOption ;
4746import com .microsoft .graph .requests .extensions .AttachmentCollectionPage ;
4847import com .microsoft .graph .requests .extensions .IMessageCollectionPage ;
4948import com .microsoft .graph .requests .extensions .IUserCollectionPage ;
@@ -115,11 +114,8 @@ public void testSendDraft() {
115114 //Send the drafted message
116115 testBase .graphClient .me ().mailFolders ("Drafts" ).messages (newMessage .id ).send ().buildRequest ().post ();
117116
118- java .util .List <QueryOption > options = new ArrayList <QueryOption >();
119- QueryOption o = new QueryOption ("$filter" , "subject eq '" + draftSubject + "'" );
120- options .add (o );
121117 //Check that the sent message exists on the server
122- IMessageCollectionPage mcp = testBase .graphClient .me ().messages ().buildRequest (options ).get ();
118+ IMessageCollectionPage mcp = testBase .graphClient .me ().messages ().buildRequest (). filter ( "subject eq '" + draftSubject + "'" ).get ();
123119 assertFalse (mcp .getCurrentPage ().isEmpty ());
124120 }
125121 private Message createDraftMessage (TestBase testBase , String draftSubject ) {
You can’t perform that action at this time.
0 commit comments