@Test public void setCanDeleteTest() { presenter.setCanDelete(false); assertFalse(rolePermissions.canDelete()); verify(branchManagementPresenter).fireChangeEvent(); }
public void setCanDelete(boolean canDelete) { this.rolePermissions.setCanDelete(canDelete); if (canDelete) { setForceCanRead(true); } parentPresenter.fireChangeEvent(); }
RoleItemPresenter extends ListItemPresenter<RolePermissions, BranchManagementPresenter, RoleItemPresenter.View> { public void setCanDelete(boolean canDelete) { this.rolePermissions.setCanDelete(canDelete); if (canDelete) { setForceCanRead(true); } parentPresenter.fireChangeEvent(); } }
RoleItemPresenter extends ListItemPresenter<RolePermissions, BranchManagementPresenter, RoleItemPresenter.View> { public void setCanDelete(boolean canDelete) { this.rolePermissions.setCanDelete(canDelete); if (canDelete) { setForceCanRead(true); } parentPresenter.fireChangeEvent(); } @Inject  RoleItemPresenter(final View view); }
RoleItemPresenter extends ListItemPresenter<RolePermissions, BranchManagementPresenter, RoleItemPresenter.View> { public void setCanDelete(boolean canDelete) { this.rolePermissions.setCanDelete(canDelete); if (canDelete) { setForceCanRead(true); } parentPresenter.fireChangeEvent(); } @Inject  RoleItemPresenter(final View view); @Override RoleItemPresenter setup(final RolePermissions rolePermissions,
                                   final BranchManagementPresenter parentPresenter); void setCanRead(boolean canRead); void setCanWrite(boolean canWrite); void setCanDelete(boolean canDelete); void setCanDeploy(boolean canDeploy); @Override RolePermissions getObject(); }
RoleItemPresenter extends ListItemPresenter<RolePermissions, BranchManagementPresenter, RoleItemPresenter.View> { public void setCanDelete(boolean canDelete) { this.rolePermissions.setCanDelete(canDelete); if (canDelete) { setForceCanRead(true); } parentPresenter.fireChangeEvent(); } @Inject  RoleItemPresenter(final View view); @Override RoleItemPresenter setup(final RolePermissions rolePermissions,
                                   final BranchManagementPresenter parentPresenter); void setCanRead(boolean canRead); void setCanWrite(boolean canWrite); void setCanDelete(boolean canDelete); void setCanDeploy(boolean canDeploy); @Override RolePermissions getObject();  }