@Test public void testDeleteAsync() throws Exception { File file = temporaryFolder.newFile("test"); FileObjectStore<ParseUser> store = new FileObjectStore<>(ParseUser.class, file, null); assertTrue(file.exists()); ParseTaskUtils.wait(store.deleteAsync()); assertFalse(file.exists()); }
@Override public Task<Void> deleteAsync() { return Task.call(new Callable<Void>() { @Override public Void call() { if (file.exists() && !ParseFileUtils.deleteQuietly(file)) { throw new RuntimeException("Unable to delete"); } return null; } }, ParseExecutors.io()); }
FileObjectStore implements ParseObjectStore<T> { @Override public Task<Void> deleteAsync() { return Task.call(new Callable<Void>() { @Override public Void call() { if (file.exists() && !ParseFileUtils.deleteQuietly(file)) { throw new RuntimeException("Unable to delete"); } return null; } }, ParseExecutors.io()); } }
FileObjectStore implements ParseObjectStore<T> { @Override public Task<Void> deleteAsync() { return Task.call(new Callable<Void>() { @Override public Void call() { if (file.exists() && !ParseFileUtils.deleteQuietly(file)) { throw new RuntimeException("Unable to delete"); } return null; } }, ParseExecutors.io()); } FileObjectStore(Class<T> clazz, File file, ParseObjectCurrentCoder coder);  FileObjectStore(String className, File file, ParseObjectCurrentCoder coder); }
FileObjectStore implements ParseObjectStore<T> { @Override public Task<Void> deleteAsync() { return Task.call(new Callable<Void>() { @Override public Void call() { if (file.exists() && !ParseFileUtils.deleteQuietly(file)) { throw new RuntimeException("Unable to delete"); } return null; } }, ParseExecutors.io()); } FileObjectStore(Class<T> clazz, File file, ParseObjectCurrentCoder coder);  FileObjectStore(String className, File file, ParseObjectCurrentCoder coder); @Override Task<Void> setAsync(final T object); @Override Task<T> getAsync(); @Override Task<Boolean> existsAsync(); @Override Task<Void> deleteAsync(); }
FileObjectStore implements ParseObjectStore<T> { @Override public Task<Void> deleteAsync() { return Task.call(new Callable<Void>() { @Override public Void call() { if (file.exists() && !ParseFileUtils.deleteQuietly(file)) { throw new RuntimeException("Unable to delete"); } return null; } }, ParseExecutors.io()); } FileObjectStore(Class<T> clazz, File file, ParseObjectCurrentCoder coder);  FileObjectStore(String className, File file, ParseObjectCurrentCoder coder); @Override Task<Void> setAsync(final T object); @Override Task<T> getAsync(); @Override Task<Boolean> existsAsync(); @Override Task<Void> deleteAsync();  }