@Test public void setCanBuildTest() { presenter.setCanDeploy(false); assertFalse(rolePermissions.canDeploy()); verify(branchManagementPresenter).fireChangeEvent(); }
public void setCanDeploy(boolean canDeploy) { this.rolePermissions.setCanDeploy(canDeploy); if (canDeploy) { setForceCanRead(true); setForceCanWrite(true); } parentPresenter.fireChangeEvent(); }
RoleItemPresenter extends ListItemPresenter<RolePermissions, BranchManagementPresenter, RoleItemPresenter.View> { public void setCanDeploy(boolean canDeploy) { this.rolePermissions.setCanDeploy(canDeploy); if (canDeploy) { setForceCanRead(true); setForceCanWrite(true); } parentPresenter.fireChangeEvent(); } }
RoleItemPresenter extends ListItemPresenter<RolePermissions, BranchManagementPresenter, RoleItemPresenter.View> { public void setCanDeploy(boolean canDeploy) { this.rolePermissions.setCanDeploy(canDeploy); if (canDeploy) { setForceCanRead(true); setForceCanWrite(true); } parentPresenter.fireChangeEvent(); } @Inject  RoleItemPresenter(final View view); }
RoleItemPresenter extends ListItemPresenter<RolePermissions, BranchManagementPresenter, RoleItemPresenter.View> { public void setCanDeploy(boolean canDeploy) { this.rolePermissions.setCanDeploy(canDeploy); if (canDeploy) { setForceCanRead(true); setForceCanWrite(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 setCanDeploy(boolean canDeploy) { this.rolePermissions.setCanDeploy(canDeploy); if (canDeploy) { setForceCanRead(true); setForceCanWrite(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();  }