@Test public void testFailingFindAllPinned() throws Exception { OfflineStore offlineStore = mock(OfflineStore.class); Parse.setLocalDatastore(offlineStore); when(offlineStore.findFromPinAsync(eq(EventuallyPin.PIN_NAME), any(ParseQuery.State.class), any(ParseUser.class))) .thenReturn(Task.forError(new SQLiteException())); ParsePlugins plugins = mock(ParsePlugins.class); ParsePlugins.set(plugins); when(plugins.restClient()).thenReturn(ParseHttpClient.createClient(null)); thrown.expect(SQLiteException.class); ParseTaskUtils.wait(EventuallyPin.findAllPinned()); }
public static Task<List<EventuallyPin>> findAllPinned() { return findAllPinned(null); }
EventuallyPin extends ParseObject { public static Task<List<EventuallyPin>> findAllPinned() { return findAllPinned(null); } }
EventuallyPin extends ParseObject { public static Task<List<EventuallyPin>> findAllPinned() { return findAllPinned(null); } EventuallyPin(); }
EventuallyPin extends ParseObject { public static Task<List<EventuallyPin>> findAllPinned() { return findAllPinned(null); } EventuallyPin(); static Task<EventuallyPin> pinEventuallyCommand(ParseObject object,
                                                           ParseRESTCommand command); static Task<List<EventuallyPin>> findAllPinned(); static Task<List<EventuallyPin>> findAllPinned(Collection<String> excludeUUIDs); String getUUID(); int getType(); ParseObject getObject(); String getOperationSetUUID(); String getSessionToken(); ParseRESTCommand getCommand(); }
EventuallyPin extends ParseObject { public static Task<List<EventuallyPin>> findAllPinned() { return findAllPinned(null); } EventuallyPin(); static Task<EventuallyPin> pinEventuallyCommand(ParseObject object,
                                                           ParseRESTCommand command); static Task<List<EventuallyPin>> findAllPinned(); static Task<List<EventuallyPin>> findAllPinned(Collection<String> excludeUUIDs); String getUUID(); int getType(); ParseObject getObject(); String getOperationSetUUID(); String getSessionToken(); ParseRESTCommand getCommand(); static final String PIN_NAME; static final int TYPE_SAVE; static final int TYPE_DELETE; static final int TYPE_COMMAND; }