Source:
public void checkWorkspaceSelectingByCheckbox() throws Exception { String blankWorkspaceName = blankWorkspace.getName(); String javaWorkspaceName = javaWorkspace.getName(); workspaces.waitPageLoading(); workspaces.selectAllWorkspacesByBulk(); assertTrue(workspaces.isWorkspaceChecked(javaWorkspaceName)); assertTrue(workspaces.isWorkspaceChecked(blankWorkspaceName)); assertTrue(workspaces.isBulkCheckboxEnabled()); workspaces.waitDeleteWorkspaceBtn(); workspaces.selectAllWorkspacesByBulk(); assertTrue(!workspaces.isWorkspaceChecked(javaWorkspaceName)); assertTrue(!workspaces.isWorkspaceChecked(blankWorkspaceName)); assertTrue(!workspaces.isBulkCheckboxEnabled()); workspaces.waitDeleteWorkspaceBtnDisappearance(); workspaces.selectAllWorkspacesByBulk(); assertTrue(workspaces.isWorkspaceChecked(javaWorkspaceName)); assertTrue(workspaces.isWorkspaceChecked(blankWorkspaceName)); assertTrue(workspaces.isBulkCheckboxEnabled()); workspaces.waitDeleteWorkspaceBtn(); workspaces.selectWorkspaceByCheckbox(blankWorkspaceName); assertTrue(workspaces.isWorkspaceChecked(javaWorkspaceName)); assertTrue(!workspaces.isWorkspaceChecked(blankWorkspaceName)); assertTrue(!workspaces.isBulkCheckboxEnabled()); workspaces.waitDeleteWorkspaceBtn(); workspaces.selectWorkspaceByCheckbox(javaWorkspaceName); assertTrue(!workspaces.isWorkspaceChecked(javaWorkspaceName)); assertTrue(!workspaces.isWorkspaceChecked(blankWorkspaceName)); assertTrue(!workspaces.isBulkCheckboxEnabled()); workspaces.waitDeleteWorkspaceBtnDisappearance(); workspaces.selectWorkspaceByCheckbox(blankWorkspaceName); assertTrue(!workspaces.isWorkspaceChecked(javaWorkspaceName)); assertTrue(workspaces.isWorkspaceChecked(blankWorkspaceName)); assertTrue(!workspaces.isBulkCheckboxEnabled()); workspaces.waitDeleteWorkspaceBtn(); workspaces.selectWorkspaceByCheckbox(javaWorkspaceName); assertTrue(workspaces.isWorkspaceChecked(javaWorkspaceName)); assertTrue(workspaces.isWorkspaceChecked(blankWorkspaceName)); assertTrue(workspaces.isBulkCheckboxEnabled()); workspaces.waitDeleteWorkspaceBtn(); workspaces.selectAllWorkspacesByBulk(); assertTrue(!workspaces.isWorkspaceChecked(javaWorkspaceName)); assertTrue(!workspaces.isWorkspaceChecked(blankWorkspaceName)); assertTrue(!workspaces.isBulkCheckboxEnabled()); workspaces.waitDeleteWorkspaceBtnDisappearance(); }

Target:
public void checkWorkspaceSelectingByCheckbox() throws Exception { String blankWorkspaceName = blankWorkspace.getName(); String javaWorkspaceName = javaWorkspace.getName(); workspaces.waitPageLoading(); workspaces.selectAllWorkspacesByBulk(); workspaces.waitWorkspaceCheckboxEnabled(javaWorkspaceName); workspaces.waitWorkspaceCheckboxEnabled(blankWorkspaceName); workspaces.waitBulkCheckboxEnabled(); workspaces.waitDeleteWorkspaceBtn(); workspaces.selectAllWorkspacesByBulk(); workspaces.waitWorkspaceCheckboxDisabled(javaWorkspaceName); workspaces.waitWorkspaceCheckboxDisabled(blankWorkspaceName); workspaces.waitBulkCheckboxDisabled(); workspaces.waitDeleteWorkspaceBtnDisappearance(); workspaces.selectAllWorkspacesByBulk(); workspaces.waitWorkspaceCheckboxEnabled(javaWorkspaceName); workspaces.waitWorkspaceCheckboxEnabled(blankWorkspaceName); workspaces.waitBulkCheckboxEnabled(); workspaces.waitDeleteWorkspaceBtn(); workspaces.selectWorkspaceByCheckbox(blankWorkspaceName); workspaces.waitWorkspaceCheckboxEnabled(javaWorkspaceName); workspaces.waitWorkspaceCheckboxDisabled(blankWorkspaceName); workspaces.waitBulkCheckboxDisabled(); workspaces.waitDeleteWorkspaceBtn(); workspaces.selectWorkspaceByCheckbox(javaWorkspaceName); workspaces.waitWorkspaceCheckboxDisabled(javaWorkspaceName); workspaces.waitWorkspaceCheckboxDisabled(blankWorkspaceName); workspaces.waitBulkCheckboxDisabled(); workspaces.waitDeleteWorkspaceBtnDisappearance(); workspaces.selectWorkspaceByCheckbox(blankWorkspaceName); workspaces.waitWorkspaceCheckboxDisabled(javaWorkspaceName); workspaces.waitWorkspaceCheckboxEnabled(blankWorkspaceName); workspaces.waitBulkCheckboxDisabled(); workspaces.waitDeleteWorkspaceBtn(); workspaces.selectWorkspaceByCheckbox(javaWorkspaceName); workspaces.waitWorkspaceCheckboxEnabled(javaWorkspaceName); workspaces.waitWorkspaceCheckboxEnabled(blankWorkspaceName); workspaces.waitBulkCheckboxEnabled(); workspaces.waitDeleteWorkspaceBtn(); workspaces.selectAllWorkspacesByBulk(); workspaces.waitWorkspaceCheckboxDisabled(javaWorkspaceName); workspaces.waitWorkspaceCheckboxDisabled(blankWorkspaceName); workspaces.waitBulkCheckboxDisabled(); workspaces.waitDeleteWorkspaceBtnDisappearance(); }