33import android .test .AndroidTestCase ;
44import android .test .suitebuilder .annotation .Suppress ;
55
6+ import com .google .gson .JsonElement ;
67import com .google .gson .JsonPrimitive ;
8+ //import com.microsoft.graph.extensions.Group;
9+ //import com.microsoft.graph.extensions.GroupDeltaCollectionPage;
10+ //import com.microsoft.graph.extensions.IGroupDeltaCollectionPage;
11+ //import com.microsoft.graph.extensions.IGroupDeltaCollectionRequest;
12+ //import com.microsoft.graph.extensions.IGroupDeltaCollectionRequestBuilder;
713//import com.microsoft.graph.extensions.Extension;
814//import com.microsoft.graph.extensions.IUserGetMailTipsCollectionPage;
915//import com.microsoft.graph.extensions.MailTips;
1319import org .junit .Before ;
1420import org .junit .Test ;
1521
22+ import java .net .URL ;
1623import java .util .ArrayList ;
1724import java .util .EnumSet ;
1825import java .util .List ;
@@ -24,7 +31,7 @@ public class ODataTests extends AndroidTestCase {
2431
2532 @ Before
2633 public void setUp () {
27- // testBase = new TestBase();
34+ testBase = new TestBase ();
2835//
2936// // There's a current limitation of two extensions per user. If there's two extensions in the collection,
3037// // delete the latest one
@@ -71,4 +78,28 @@ public void testEnumFlags() {
7178// }
7279// }
7380 }
81+
82+ @ Test
83+ public void testDeltaQuery () {
84+ // testBase.graphClient.setServiceRoot("https://graph.microsoft.com/beta");
85+ // IGroupDeltaCollectionPage deltas = testBase.graphClient.getGroups().getDelta().buildRequest().get();
86+ //
87+ // assertNotNull(deltas.getCurrentPage());
88+ // for (int i = 0; i < deltas.getCurrentPage().size(); i++) {
89+ // Group group = deltas.getCurrentPage().get(i);
90+ // String s = group.description;
91+ // }
92+ //
93+ // while(deltas.getNextPage() != null) {
94+ // deltas = deltas.getNextPage().buildRequest().get();
95+ // assertNotNull(deltas.getCurrentPage());
96+ // }
97+ //
98+ // IGroupDeltaCollectionPage deltas2 = testBase.graphClient.getGroups().getDelta(deltas.getDeltaLink()).buildRequest().get();
99+ // assertNotNull(deltas2);
100+ }
101+
102+ @ Test
103+ public void testDeletedItem () {
104+ }
74105}
0 commit comments