@Test(expected = IllegalStateException.class) public void testValidateSaveFailureWithNoObjectIdAndName() { ParseRole role = new ParseRole(); role.validateSave(); }
@Override void validateSave() { synchronized (mutex) { if (this.getObjectId() == null && getName() == null) { throw new IllegalStateException("New roles must specify a name."); } super.validateSave(); } }
ParseRole extends ParseObject { @Override void validateSave() { synchronized (mutex) { if (this.getObjectId() == null && getName() == null) { throw new IllegalStateException("New roles must specify a name."); } super.validateSave(); } } }
ParseRole extends ParseObject { @Override void validateSave() { synchronized (mutex) { if (this.getObjectId() == null && getName() == null) { throw new IllegalStateException("New roles must specify a name."); } super.validateSave(); } } ParseRole();  ParseRole(String name);  ParseRole(String name, ParseACL acl); }
ParseRole extends ParseObject { @Override void validateSave() { synchronized (mutex) { if (this.getObjectId() == null && getName() == null) { throw new IllegalStateException("New roles must specify a name."); } super.validateSave(); } } ParseRole();  ParseRole(String name);  ParseRole(String name, ParseACL acl); static ParseQuery<ParseRole> getQuery(); String getName(); void setName(String name); ParseRelation<ParseUser> getUsers(); ParseRelation<ParseRole> getRoles(); @Override void put(@NonNull String key, @NonNull Object value); }
ParseRole extends ParseObject { @Override void validateSave() { synchronized (mutex) { if (this.getObjectId() == null && getName() == null) { throw new IllegalStateException("New roles must specify a name."); } super.validateSave(); } } ParseRole();  ParseRole(String name);  ParseRole(String name, ParseACL acl); static ParseQuery<ParseRole> getQuery(); String getName(); void setName(String name); ParseRelation<ParseUser> getUsers(); ParseRelation<ParseRole> getRoles(); @Override void put(@NonNull String key, @NonNull Object value);  }