@Test public void fetch_object_non_exist_object() throws Exception { NCMBObject obj = new NCMBObject("TestClass"); obj.setObjectId("NonExistObject"); obj.fetchInBackground(new FetchCallback<NCMBObject>() { @Override public void done(NCMBObject object, NCMBException e) { if (e == null) { Assert.fail("get object method should raise exception:"); } else { Assert.assertEquals(NCMBException.DATA_NOT_FOUND, e.getCode()); } } }); }
public void fetchInBackground() { fetchInBackground(null); }
NCMBObject extends NCMBBase { public void fetchInBackground() { fetchInBackground(null); } }
NCMBObject extends NCMBBase { public void fetchInBackground() { fetchInBackground(null); } NCMBObject(String className);   NCMBObject(String className, JSONObject params); }
NCMBObject extends NCMBBase { public void fetchInBackground() { fetchInBackground(null); } NCMBObject(String className);   NCMBObject(String className, JSONObject params); void save(); void saveInBackground(final DoneCallback callback); void fetch(); void fetchInBackground(); void fetchInBackground(final FetchCallback callback); void deleteObject(); void deleteObjectInBackground(final DoneCallback callback); void increment(String key, int amount); void addToList(String key, List objects); void addUniqueToList(String key, List objects); void removeFromList(String key, List objects); }
NCMBObject extends NCMBBase { public void fetchInBackground() { fetchInBackground(null); } NCMBObject(String className);   NCMBObject(String className, JSONObject params); void save(); void saveInBackground(final DoneCallback callback); void fetch(); void fetchInBackground(); void fetchInBackground(final FetchCallback callback); void deleteObject(); void deleteObjectInBackground(final DoneCallback callback); void increment(String key, int amount); void addToList(String key, List objects); void addUniqueToList(String key, List objects); void removeFromList(String key, List objects);  }