@Test public void testSetPropertyMv() throws Exception { Value[] v = new Value[] {}; a.setProperty("propName", v); verify(dlg, times(1)).setProperty("propName", v); verify(autosaveMgr, times(1)).autosave(); }
@Override public void setProperty(@NotNull String s, @Nullable Value value) throws RepositoryException { try { dlg.setProperty(s, value); } finally { mgr.autosave(); } }
AuthorizableImpl implements Authorizable { @Override public void setProperty(@NotNull String s, @Nullable Value value) throws RepositoryException { try { dlg.setProperty(s, value); } finally { mgr.autosave(); } } }
AuthorizableImpl implements Authorizable { @Override public void setProperty(@NotNull String s, @Nullable Value value) throws RepositoryException { try { dlg.setProperty(s, value); } finally { mgr.autosave(); } } AuthorizableImpl(Authorizable dlg, AutoSaveEnabledManager mgr); }
AuthorizableImpl implements Authorizable { @Override public void setProperty(@NotNull String s, @Nullable Value value) throws RepositoryException { try { dlg.setProperty(s, value); } finally { mgr.autosave(); } } AuthorizableImpl(Authorizable dlg, AutoSaveEnabledManager mgr); @NotNull @Override String getID(); @Override boolean isGroup(); @NotNull @Override Principal getPrincipal(); @NotNull @Override Iterator<Group> declaredMemberOf(); @NotNull @Override Iterator<Group> memberOf(); @Override void remove(); @NotNull @Override Iterator<String> getPropertyNames(); @NotNull @Override Iterator<String> getPropertyNames(@NotNull String s); @Override boolean hasProperty(@NotNull String s); @Override void setProperty(@NotNull String s, @Nullable Value value); @Override void setProperty(@NotNull String s, @Nullable Value[] values); @Nullable @Override Value[] getProperty(@NotNull String s); @Override boolean removeProperty(@NotNull String s); @NotNull @Override String getPath(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); }
AuthorizableImpl implements Authorizable { @Override public void setProperty(@NotNull String s, @Nullable Value value) throws RepositoryException { try { dlg.setProperty(s, value); } finally { mgr.autosave(); } } AuthorizableImpl(Authorizable dlg, AutoSaveEnabledManager mgr); @NotNull @Override String getID(); @Override boolean isGroup(); @NotNull @Override Principal getPrincipal(); @NotNull @Override Iterator<Group> declaredMemberOf(); @NotNull @Override Iterator<Group> memberOf(); @Override void remove(); @NotNull @Override Iterator<String> getPropertyNames(); @NotNull @Override Iterator<String> getPropertyNames(@NotNull String s); @Override boolean hasProperty(@NotNull String s); @Override void setProperty(@NotNull String s, @Nullable Value value); @Override void setProperty(@NotNull String s, @Nullable Value[] values); @Nullable @Override Value[] getProperty(@NotNull String s); @Override boolean removeProperty(@NotNull String s); @NotNull @Override String getPath(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }