File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Parse/src/test/java/com/parse Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1557,7 +1557,10 @@ private static void setLazy(ParseUser user) {
1557
1557
public void testSaveEventuallyWhenSessionIsInvalid () throws Exception {
1558
1558
1559
1559
ParseRESTCommand .server = new URL ("https://api.parse.com/1" );
1560
- Parse .enableLocalDatastore (RuntimeEnvironment .application );
1560
+
1561
+ ParseObject .registerSubclass (EventuallyPin .class );
1562
+ ParseObject .registerSubclass (ParsePin .class );
1563
+ Parse .setLocalDatastore (new OfflineStore (RuntimeEnvironment .application ));
1561
1564
1562
1565
Parse .Configuration configuration = new Parse .Configuration .Builder (RuntimeEnvironment .application )
1563
1566
.build ();
@@ -1580,8 +1583,6 @@ public void testSaveEventuallyWhenSessionIsInvalid() throws Exception {
1580
1583
when (currentUserController .getAsync ()).thenReturn (Task .forResult (user ));
1581
1584
ParseCorePlugins .getInstance ().registerCurrentUserController (currentUserController );
1582
1585
1583
- //Parse.getEventuallyQueue().clear();
1584
-
1585
1586
user .put ("field" , "data" );
1586
1587
1587
1588
JSONObject mockResponse = new JSONObject ();
You can’t perform that action at this time.
0 commit comments