diff options
author | donald.g.dunne | 2017-10-02 03:55:20 +0000 |
---|---|---|
committer | Ryan T. Baldwin | 2017-10-02 03:55:20 +0000 |
commit | 0eb56b248997df90da75254cd8756db67d34709c (patch) | |
tree | 18dc417d56120df924ec6713704f380640391666 /plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core | |
parent | 7859f0adb397e6abb4f2131f2b0390baa4cd1fdc (diff) | |
download | org.eclipse.osee-0eb56b248997df90da75254cd8756db67d34709c.tar.gz org.eclipse.osee-0eb56b248997df90da75254cd8756db67d34709c.tar.xz org.eclipse.osee-0eb56b248997df90da75254cd8756db67d34709c.zip |
refactor[ats_TSK19352]: Re-format all files
Change-Id: I1515a63a7cd69582343a67b2469327c76520370d
Diffstat (limited to 'plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core')
15 files changed, 93 insertions, 93 deletions
diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/AtsTestUtil.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/AtsTestUtil.java index df51977f0d2..d42ac7fe5eb 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/AtsTestUtil.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/AtsTestUtil.java @@ -107,7 +107,7 @@ public class AtsTestUtil { private static IAtsWidgetDefinition estHoursWidgetDef, workPackageWidgetDef; private static String postFixName; - public static void validateArtifactCache() { + public static void validateArtifactCache() { final Collection<Artifact> dirtyArtifacts = ArtifactCache.getDirtyArtifacts(); if (!dirtyArtifacts.isEmpty()) { for (Artifact artifact : dirtyArtifacts) { @@ -119,7 +119,7 @@ public class AtsTestUtil { } } - public static void validateObjectsNull() { + public static void validateObjectsNull() { validateObjectsNull("teamArt", teamWf); validateObjectsNull("teamArt2", teamArt2); validateObjectsNull("teamArt3", teamArt3); @@ -150,18 +150,18 @@ public class AtsTestUtil { validateObjectsNull("workPackageWidgetDef", workPackageWidgetDef); } - private static void validateObjectsNull(String name, Object obj) { + private static void validateObjectsNull(String name, Object obj) { if (obj != null) { throw new OseeStateException("[%s] objects should be null but is not", name); } } - public static IAtsWorkDefinition getWorkDef() { + public static IAtsWorkDefinition getWorkDef() { ensureLoaded(); return workDef; } - public static IAtsStateDefinition getAnalyzeStateDef() { + public static IAtsStateDefinition getAnalyzeStateDef() { ensureLoaded(); if (analyze == null) { analyze = workDef.getStateByName("Analyze"); @@ -169,7 +169,7 @@ public class AtsTestUtil { return analyze; } - public static IAtsWidgetDefinition getEstHoursWidgetDef() { + public static IAtsWidgetDefinition getEstHoursWidgetDef() { ensureLoaded(); if (estHoursWidgetDef == null) { for (IAtsLayoutItem item : getAnalyzeStateDef().getLayoutItems()) { @@ -182,7 +182,7 @@ public class AtsTestUtil { return estHoursWidgetDef; } - public static IAtsWidgetDefinition getWorkPackageWidgetDef() { + public static IAtsWidgetDefinition getWorkPackageWidgetDef() { ensureLoaded(); if (workPackageWidgetDef == null) { for (IAtsLayoutItem item : getAnalyzeStateDef().getLayoutItems()) { @@ -195,7 +195,7 @@ public class AtsTestUtil { return workPackageWidgetDef; } - public static IAtsStateDefinition getImplementStateDef() { + public static IAtsStateDefinition getImplementStateDef() { ensureLoaded(); if (implement == null) { implement = workDef.getStateByName("Implement"); @@ -203,7 +203,7 @@ public class AtsTestUtil { return implement; } - public static IAtsStateDefinition getCompletedStateDef() { + public static IAtsStateDefinition getCompletedStateDef() { ensureLoaded(); if (completed == null) { completed = workDef.getStateByName("Completed"); @@ -211,7 +211,7 @@ public class AtsTestUtil { return completed; } - public static IAtsStateDefinition getCancelledStateDef() { + public static IAtsStateDefinition getCancelledStateDef() { ensureLoaded(); if (cancelled == null) { cancelled = workDef.getStateByName("Cancelled"); @@ -219,13 +219,13 @@ public class AtsTestUtil { return cancelled; } - private static void ensureLoaded() { + private static void ensureLoaded() { if (workDef == null) { throw new OseeStateException("Must call cleanAndReset before using this method"); } } - private static void clearCaches() { + private static void clearCaches() { if (workDef != null) { AtsClientService.get().getWorkDefinitionService().removeWorkDefinition(workDef); } @@ -284,7 +284,7 @@ public class AtsTestUtil { /** * Clear workDef from cache, clear all objects and create new objects with postFixName in titles */ - private static void reset(String postFixName) { + private static void reset(String postFixName) { if (ClientSessionManager.isProductionDataStore()) { throw new OseeStateException("AtsTestUtil should not be run on production."); } @@ -377,7 +377,7 @@ public class AtsTestUtil { } } - public static TaskArtifact getOrCreateTaskOffTeamWf1() { + public static TaskArtifact getOrCreateTaskOffTeamWf1() { ensureLoaded(); if (taskArtWf1 == null) { Collection<IAtsTask> createTasks = @@ -389,7 +389,7 @@ public class AtsTestUtil { return taskArtWf1; } - public static DecisionReviewArtifact getOrCreateDecisionReview(ReviewBlockType reviewBlockType, AtsTestUtilState relatedToState, IAtsChangeSet changes) { + public static DecisionReviewArtifact getOrCreateDecisionReview(ReviewBlockType reviewBlockType, AtsTestUtilState relatedToState, IAtsChangeSet changes) { ensureLoaded(); if (decRevArt == null) { List<IAtsDecisionReviewOption> options = new ArrayList<>(); @@ -404,18 +404,18 @@ public class AtsTestUtil { return decRevArt; } - public static TeamWorkFlowArtifact getTeamWf() { + public static TeamWorkFlowArtifact getTeamWf() { ensureLoaded(); return teamWf; } - public static IAtsActionableItem getTestAi() { + public static IAtsActionableItem getTestAi() { ensureLoaded(); return testAi; } - public static IAtsTeamDefinition getTestTeamDef() { + public static IAtsTeamDefinition getTestTeamDef() { ensureLoaded(); return teamDef; } @@ -424,18 +424,18 @@ public class AtsTestUtil { * All team defs, AIs, action and workflows will be deleted and new ones created with "name" as part of object * names/titles. In addition, ArtifactCache will validate that it is not dirty or display errors if it is. */ - public static void cleanupAndReset(String name) { + public static void cleanupAndReset(String name) { cleanup(); reset(name); } - private static void delete(IAtsChangeSet changes, Artifact artifact) { + private static void delete(IAtsChangeSet changes, Artifact artifact) { if (artifact != null) { changes.addToDelete(artifact); } } - private static void deleteTeamWf(TeamWorkFlowArtifact teamWfToDelete) { + private static void deleteTeamWf(TeamWorkFlowArtifact teamWfToDelete) { if (teamWfToDelete != null) { IAtsChangeSet changes = AtsClientService.get().createChangeSet(AtsTestUtil.class.getSimpleName() + " - cleanup deleteTeamWf"); @@ -464,7 +464,7 @@ public class AtsTestUtil { * Cleanup all artifacts and confirm that ArtifactCache has no dirty artifacts. Should be called at beginning at end * of each test. */ - public static void cleanup() { + public static void cleanup() { WorldEditor.closeAll(); WorkflowEditor.closeAll(); TaskEditor.closeAll(); @@ -571,11 +571,11 @@ public class AtsTestUtil { Operations.executeWorkAndCheckStatus(new PurgeArtifacts(artifacts)); } - public static Result transitionTo(AtsTestUtilState atsTestUtilState, IAtsUser user, IAtsChangeSet changes, TransitionOption... transitionOptions) { + public static Result transitionTo(AtsTestUtilState atsTestUtilState, IAtsUser user, IAtsChangeSet changes, TransitionOption... transitionOptions) { return transitionTo(teamWf, atsTestUtilState, user, changes, transitionOptions); } - public static Result transitionTo(IAtsTeamWorkflow teamWf, AtsTestUtilState atsTestUtilState, IAtsUser user, IAtsChangeSet changes, TransitionOption... transitionOptions) { + public static Result transitionTo(IAtsTeamWorkflow teamWf, AtsTestUtilState atsTestUtilState, IAtsUser user, IAtsChangeSet changes, TransitionOption... transitionOptions) { if (atsTestUtilState == AtsTestUtilState.Analyze && teamWf.getStateMgr().isInState(AtsTestUtilState.Analyze)) { return Result.TrueResult; } @@ -639,7 +639,7 @@ public class AtsTestUtil { } } - public static PeerToPeerReviewArtifact getOrCreatePeerReview(ReviewBlockType reviewBlockType, AtsTestUtilState relatedToState, IAtsChangeSet changes) { + public static PeerToPeerReviewArtifact getOrCreatePeerReview(ReviewBlockType reviewBlockType, AtsTestUtilState relatedToState, IAtsChangeSet changes) { ensureLoaded(); try { if (peerRevArt == null) { @@ -654,7 +654,7 @@ public class AtsTestUtil { return peerRevArt; } - public static TeamWorkFlowArtifact getTeamWf2() { + public static TeamWorkFlowArtifact getTeamWf2() { ensureLoaded(); if (teamArt2 == null) { IAtsChangeSet changes = AtsClientService.get().createChangeSet(AtsTestUtil.class.getSimpleName()); @@ -669,12 +669,12 @@ public class AtsTestUtil { return teamArt2; } - public static IAtsActionableItem getTestAi2() { + public static IAtsActionableItem getTestAi2() { ensureLoaded(); return testAi2; } - public static TeamWorkFlowArtifact getTeamWf3() { + public static TeamWorkFlowArtifact getTeamWf3() { ensureLoaded(); if (teamArt3 == null) { IAtsChangeSet changes = AtsClientService.get().createChangeSet(AtsTestUtil.class.getSimpleName()); @@ -689,12 +689,12 @@ public class AtsTestUtil { return teamArt3; } - public static IAtsActionableItem getTestAi3() { + public static IAtsActionableItem getTestAi3() { ensureLoaded(); return testAi3; } - public static TeamWorkFlowArtifact getTeamWf4() { + public static TeamWorkFlowArtifact getTeamWf4() { ensureLoaded(); if (teamArt4 == null) { IAtsChangeSet changes = AtsClientService.get().createChangeSet(AtsTestUtil.class.getSimpleName()); @@ -710,7 +710,7 @@ public class AtsTestUtil { return teamArt4; } - public static IAtsActionableItem getTestAi4() { + public static IAtsActionableItem getTestAi4() { ensureLoaded(); return testAi4; } @@ -718,7 +718,7 @@ public class AtsTestUtil { /** * @return 2nd Action with single Team Workflow not tied to other ActionArt or TeamWf */ - public static ActionArtifact getActionArt2() { + public static ActionArtifact getActionArt2() { ensureLoaded(); if (actionArt2 == null) { getTeamWf2(); @@ -729,7 +729,7 @@ public class AtsTestUtil { /** * @return 3rd Action with single Team Workflow not tied to other ActionArt or TeamWf */ - public static ActionArtifact getActionArt3() { + public static ActionArtifact getActionArt3() { ensureLoaded(); if (actionArt3 == null) { getTeamWf3(); @@ -740,7 +740,7 @@ public class AtsTestUtil { /** * @return 4rd Action with single Team Workflow not tied to other ActionArt or TeamWf */ - public static ActionArtifact getActionArt4() { + public static ActionArtifact getActionArt4() { ensureLoaded(); if (actionArt4 == null) { getTeamWf4(); @@ -748,7 +748,7 @@ public class AtsTestUtil { return actionArt4; } - public static ActionArtifact getActionArt() { + public static ActionArtifact getActionArt() { ensureLoaded(); return actionArt; } @@ -757,12 +757,12 @@ public class AtsTestUtil { return new ISelectedAtsArtifacts() { @Override - public Set<Artifact> getSelectedWorkflowArtifacts() { + public Set<Artifact> getSelectedWorkflowArtifacts() { return Collections.singleton(getTeamWf()); } @Override - public List<Artifact> getSelectedAtsArtifacts() { + public List<Artifact> getSelectedAtsArtifacts() { return Arrays.asList((Artifact) getTeamWf()); } @@ -774,7 +774,7 @@ public class AtsTestUtil { }; } - public static Result createWorkingBranchFromTeamWf() { + public static Result createWorkingBranchFromTeamWf() { configureVer1ForWorkingBranch(); Result result = AtsBranchUtil.createWorkingBranch_Validate(teamWf); if (result.isFalse()) { @@ -785,7 +785,7 @@ public class AtsTestUtil { return Result.TrueResult; } - public static void configureVer1ForWorkingBranch() { + public static void configureVer1ForWorkingBranch() { IAtsVersion version = getVerArt1(); Artifact verArt = ((Artifact) version.getStoreObject()); verArt.setSoleAttributeValue(AtsAttributeTypes.AllowCreateBranch, true); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/action/AutoAddActionToGoalTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/action/AutoAddActionToGoalTest.java index 4a381d1003e..9eef3cadb46 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/action/AutoAddActionToGoalTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/action/AutoAddActionToGoalTest.java @@ -55,7 +55,7 @@ public class AutoAddActionToGoalTest { // Test that no action is added to the Goal @org.junit.Test - public void testNoActionAddedToGoal() { + public void testNoActionAddedToGoal() { AtsTestUtil.cleanupAndReset("AutoAddActionToGoalTest - AutoAddActionToGoalTest - NoAdd"); IAtsChangeSet changes = AtsClientService.get().createChangeSet(getClass().getSimpleName()); @@ -69,7 +69,7 @@ public class AutoAddActionToGoalTest { // Create a goal with a relation to an AI and add an Action. The // Team Workflow should be added to the Goal @org.junit.Test - public void testAutoAddActionToGoal_AI() { + public void testAutoAddActionToGoal_AI() { AtsTestUtil.cleanupAndReset("AutoAddActionToGoalTest - AddActionWithAI"); IAtsWorkDefinition workDef = AtsTestUtil.getWorkDef(); @@ -106,7 +106,7 @@ public class AutoAddActionToGoalTest { // Create a goal with a relation to a Team Definition and add an Action. The // Team Workflow should be added to the Goal @org.junit.Test - public void testAutoAddActionToGoal_TeamWF() { + public void testAutoAddActionToGoal_TeamWF() { AtsTestUtil.cleanupAndReset("AutoAddActionToGoalTest - AddActionWithTeamDef"); IAtsChangeSet changes = AtsClientService.get().createChangeSet(getClass().getSimpleName()); @@ -134,7 +134,7 @@ public class AutoAddActionToGoalTest { // Create a Goal with a relation to an AI and Team Definition. The action should // only be added to the goal once. @org.junit.Test - public void testAutoAddActionToGoal_AIandTeamWF() { + public void testAutoAddActionToGoal_AIandTeamWF() { AtsTestUtil.cleanupAndReset("AutoAddActionToGoalTest - AddActionWithAIandTeamDef"); IAtsWorkDefinition workDef = AtsTestUtil.getWorkDef(); @@ -175,7 +175,7 @@ public class AutoAddActionToGoalTest { // one of those AIs. Create two Actions and test Goal one has two members and Goal two has // only one member. @org.junit.Test - public void testAutoAddActionToGoal_TwoAIsTwoGoals() { + public void testAutoAddActionToGoal_TwoAIsTwoGoals() { AtsTestUtil.cleanupAndReset("DecisionReviewManagerTest - UnAssigned"); IAtsWorkDefinition workDef = AtsTestUtil.getWorkDef(); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/branch/AtsBranchServiceImplTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/branch/AtsBranchServiceImplTest.java index bc2adc93d4a..a368216d57b 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/branch/AtsBranchServiceImplTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/branch/AtsBranchServiceImplTest.java @@ -55,7 +55,7 @@ public class AtsBranchServiceImplTest { } @Test - public void testGetCommitTransactionsAndConfigItemsForTeamWf_teamDef() { + public void testGetCommitTransactionsAndConfigItemsForTeamWf_teamDef() { AtsTestUtil.cleanupAndReset( AtsBranchServiceImplTest.class.getSimpleName() + ".testGetCommitTransactionsAndConfigItemsForTeamWf_teamDef"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); @@ -76,7 +76,7 @@ public class AtsBranchServiceImplTest { } @Test - public void testGetCommitTransactionsAndConfigItemsForTeamWf_versions() { + public void testGetCommitTransactionsAndConfigItemsForTeamWf_versions() { AtsTestUtil.cleanupAndReset( AtsBranchServiceImplTest.class.getSimpleName() + ".testGetCommitTransactionsAndConfigItemsForTeamWf_versions"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); @@ -100,7 +100,7 @@ public class AtsBranchServiceImplTest { } @Test - public void testGetCommitTransactionsAndConfigItemsForTeam_txRecords() { + public void testGetCommitTransactionsAndConfigItemsForTeam_txRecords() { AtsTestUtil.cleanupAndReset( AtsBranchServiceImplTest.class.getSimpleName() + ".testGetCommitTransactionsAndConfigItemsForTeam_txRecords"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/operation/MoveTeamWorkflowsOperationTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/operation/MoveTeamWorkflowsOperationTest.java index aa3a45bd9a1..7faf18fadbd 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/operation/MoveTeamWorkflowsOperationTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/operation/MoveTeamWorkflowsOperationTest.java @@ -33,7 +33,7 @@ public class MoveTeamWorkflowsOperationTest { } @org.junit.Test - public void testDoWork() { + public void testDoWork() { AtsTestUtil.cleanupAndReset(getClass().getSimpleName()); ActionArtifact actArt = AtsTestUtil.getActionArt(); TeamWorkFlowArtifact teamWf = AtsTestUtil.getTeamWf(); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewDefinitionManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewDefinitionManagerTest.java index babc435775d..7bb1b8631d5 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewDefinitionManagerTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewDefinitionManagerTest.java @@ -53,7 +53,7 @@ public class DecisionReviewDefinitionManagerTest extends DecisionReviewDefinitio } @org.junit.Test - public void testCreateDecisionReviewDuringTransition_ToDecision() { + public void testCreateDecisionReviewDuringTransition_ToDecision() { AtsTestUtil.cleanupAndReset("DecisionReviewDefinitionManagerTest - ToDecision"); try { @@ -99,7 +99,7 @@ public class DecisionReviewDefinitionManagerTest extends DecisionReviewDefinitio } @org.junit.Test - public void testCreateDecisionReviewDuringTransition_Prepare() { + public void testCreateDecisionReviewDuringTransition_Prepare() { AtsTestUtil.cleanupAndReset("DecisionReviewDefinitionManagerTest - Prepare"); try { diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewManagerTest.java index 36130f06644..59c3cefb1da 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewManagerTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/DecisionReviewManagerTest.java @@ -48,14 +48,14 @@ public class DecisionReviewManagerTest extends DecisionReviewManager { } @org.junit.Test - public void testGetDecisionReviewOptionsStr() { + public void testGetDecisionReviewOptionsStr() { Assert.assertEquals("Yes;Followup;<3333>\nNo;Completed;\n", AtsClientService.get().getReviewService().getDecisionReviewOptionsString( AtsClientService.get().getReviewService().getDefaultDecisionReviewOptions())); } @org.junit.Test - public void testCreateNewDecisionReviewAndTransitionToDecision__Normal() { + public void testCreateNewDecisionReviewAndTransitionToDecision__Normal() { AtsTestUtil.cleanupAndReset("DecisionReviewManagerTest - Normal"); TeamWorkFlowArtifact teamWf = AtsTestUtil.getTeamWf(); @@ -85,7 +85,7 @@ public class DecisionReviewManagerTest extends DecisionReviewManager { } @org.junit.Test - public void testCreateNewDecisionReviewAndTransitionToDecision__UnAssigned() { + public void testCreateNewDecisionReviewAndTransitionToDecision__UnAssigned() { AtsTestUtil.cleanupAndReset("DecisionReviewManagerTest - UnAssigned"); TeamWorkFlowArtifact teamWf = AtsTestUtil.getTeamWf(); @@ -116,7 +116,7 @@ public class DecisionReviewManagerTest extends DecisionReviewManager { } @org.junit.Test - public void testCreateNewDecisionReview__Base() { + public void testCreateNewDecisionReview__Base() { AtsTestUtil.cleanupAndReset("DecisionReviewManagerTest - Base"); TeamWorkFlowArtifact teamWf = AtsTestUtil.getTeamWf(); @@ -142,7 +142,7 @@ public class DecisionReviewManagerTest extends DecisionReviewManager { } @org.junit.Test - public void testCreateNewDecisionReview__BaseUnassigned() { + public void testCreateNewDecisionReview__BaseUnassigned() { AtsTestUtil.cleanupAndReset("DecisionReviewManagerTest - BaseUnassigned"); TeamWorkFlowArtifact teamWf = AtsTestUtil.getTeamWf(); @@ -161,7 +161,7 @@ public class DecisionReviewManagerTest extends DecisionReviewManager { } @org.junit.Test - public void testCreateNewDecisionReview__Sample() { + public void testCreateNewDecisionReview__Sample() { AtsTestUtil.cleanupAndReset("DecisionReviewManagerTest - Sample"); TeamWorkFlowArtifact teamWf = AtsTestUtil.getTeamWf(); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/PeerReviewDefinitionManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/PeerReviewDefinitionManagerTest.java index 8d3c4a16d7c..a2e196f8c13 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/PeerReviewDefinitionManagerTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/PeerReviewDefinitionManagerTest.java @@ -51,7 +51,7 @@ public class PeerReviewDefinitionManagerTest extends PeerReviewDefinitionManager } @org.junit.Test - public void testCreatePeerReviewDuringTransition() { + public void testCreatePeerReviewDuringTransition() { AtsTestUtil.cleanupAndReset("PeerReviewDefinitionManagerTest"); try { diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/PeerToPeerReviewManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/PeerToPeerReviewManagerTest.java index 04c70e6f8c7..14b0d7f6352 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/PeerToPeerReviewManagerTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/review/PeerToPeerReviewManagerTest.java @@ -54,7 +54,7 @@ public class PeerToPeerReviewManagerTest extends PeerToPeerReviewManager { } @org.junit.Test - public void testCreateNewPeerToPeerReview__Base() { + public void testCreateNewPeerToPeerReview__Base() { AtsTestUtil.cleanupAndReset("PeerToPeerReviewManagerTest - Base"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); @@ -80,7 +80,7 @@ public class PeerToPeerReviewManagerTest extends PeerToPeerReviewManager { } @org.junit.Test - public void testCreateNewPeerToPeerReview__Simple() { + public void testCreateNewPeerToPeerReview__Simple() { AtsTestUtil.cleanupAndReset("PeerToPeerReviewManagerTest - Simple"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); @@ -104,7 +104,7 @@ public class PeerToPeerReviewManagerTest extends PeerToPeerReviewManager { } @org.junit.Test - public void testCreateNewPeerToPeerReview__StandAlone() { + public void testCreateNewPeerToPeerReview__StandAlone() { AtsTestUtil.cleanupAndReset("PeerToPeerReviewManagerTest - StandAlone"); IAtsActionableItem testAi = AtsTestUtil.getTestAi(); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/task/TaskTestUtil.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/task/TaskTestUtil.java index 8942bcf2ae3..21335ba7f49 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/task/TaskTestUtil.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/task/TaskTestUtil.java @@ -55,7 +55,7 @@ public class TaskTestUtil { return new Result("Transition Error %s", results.toString()); } - public static Result transitionToInWork(TaskArtifact taskArt, IAtsUser toUser, int percentComplete, double additionalHours, IAtsChangeSet changes) { + public static Result transitionToInWork(TaskArtifact taskArt, IAtsUser toUser, int percentComplete, double additionalHours, IAtsChangeSet changes) { if (taskArt.isInState(TaskStates.InWork)) { return Result.TrueResult; } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/util/AtsUserTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/util/AtsUserTest.java index 4ac9551cdd5..797a7b74de9 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/util/AtsUserTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/util/AtsUserTest.java @@ -31,13 +31,13 @@ public class AtsUserTest { private static User user; @BeforeClass - public static void setUp() { + public static void setUp() { user = UserManager.getUser(); atsUser = AtsClientService.get().getUserService().getCurrentUser(); } @org.junit.Test - public void testGetUserId() { + public void testGetUserId() { Assert.assertEquals(user.getUserId(), atsUser.getUserId()); } @@ -52,7 +52,7 @@ public class AtsUserTest { } @org.junit.Test - public void testRemove() { + public void testRemove() { Collection<IAtsUser> assignees = new HashSet<>(); assignees.add(AtsClientService.get().getUserServiceClient().getUserFromToken(DemoUsers.Alex_Kay)); assignees.add(AtsClientService.get().getUserServiceClient().getUserFromToken(DemoUsers.Joe_Smith)); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/util/AtsUsersTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/util/AtsUsersTest.java index f1d36a9b070..5f1832a961f 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/util/AtsUsersTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/util/AtsUsersTest.java @@ -25,7 +25,7 @@ import org.junit.Test; public class AtsUsersTest { @Test - public void testGetUser() { + public void testGetUser() { Assert.assertEquals(AtsCoreUsers.SYSTEM_USER, AtsClientService.get().getUserService().getUserById(SystemUser.OseeSystem.getUserId())); Assert.assertEquals(AtsCoreUsers.ANONYMOUS_USER, @@ -35,17 +35,17 @@ public class AtsUsersTest { } @Test - public void testGetUserException() { + public void testGetUserException() { Assert.assertNull(AtsClientService.get().getUserService().getUserById("2345")); } @Test - public void testGetUserWithNull() { + public void testGetUserWithNull() { Assert.assertNull(AtsClientService.get().getUserService().getUserById(null)); } @Test - public void testGetCurrentUser() { + public void testGetCurrentUser() { User currentUser = UserManager.getUser(); Assert.assertEquals(currentUser, AtsClientService.get().getUserServiceClient().getCurrentOseeUser()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/ConvertWorkflowStatesOperationTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/ConvertWorkflowStatesOperationTest.java index 6b038f8e9e4..378953b8d34 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/ConvertWorkflowStatesOperationTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/ConvertWorkflowStatesOperationTest.java @@ -42,7 +42,7 @@ public class ConvertWorkflowStatesOperationTest { @BeforeClass @AfterClass - public static void cleanup() { + public static void cleanup() { SkynetTransaction transaction = TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), "ConvertWorkflowStatesOperationTest.cleanup"); for (Artifact art : ArtifactQuery.getArtifactListFromTypeAndName(AtsArtifactTypes.TeamWorkflow, diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/MockTransitionHelper.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/MockTransitionHelper.java index 36ffa54f680..59f8f14314e 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/MockTransitionHelper.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/MockTransitionHelper.java @@ -39,7 +39,7 @@ public class MockTransitionHelper extends TransitionHelper { } @Override - public boolean isWorkingBranchInWork(IAtsTeamWorkflow teamWf) { + public boolean isWorkingBranchInWork(IAtsTeamWorkflow teamWf) { if (workingBranchInWork != null) { return workingBranchInWork; } @@ -47,7 +47,7 @@ public class MockTransitionHelper extends TransitionHelper { } @Override - public boolean isBranchInCommit(IAtsTeamWorkflow teamWf) { + public boolean isBranchInCommit(IAtsTeamWorkflow teamWf) { if (branchInCommit != null) { return branchInCommit; } @@ -71,7 +71,7 @@ public class MockTransitionHelper extends TransitionHelper { } @Override - public boolean isSystemUser() { + public boolean isSystemUser() { if (systemUser != null) { return systemUser; } @@ -83,7 +83,7 @@ public class MockTransitionHelper extends TransitionHelper { } @Override - public boolean isSystemUserAssingee(IAtsWorkItem workItem) { + public boolean isSystemUserAssingee(IAtsWorkItem workItem) { if (systemUserAssigned != null) { return systemUserAssigned; } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/StateManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/StateManagerTest.java index a1d92d101d1..f7161d72cdc 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/StateManagerTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/StateManagerTest.java @@ -37,7 +37,7 @@ public class StateManagerTest { } @Test - public void testUpdateMetrics() { + public void testUpdateMetrics() { AtsTestUtil.cleanupAndReset(getClass().getSimpleName()); TeamWorkFlowArtifact teamWf = AtsTestUtil.getTeamWf(); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java index 7760c94371e..9937af16e50 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/workflow/transition/TransitionManagerTest.java @@ -90,18 +90,18 @@ public class TransitionManagerTest { } @BeforeClass - public static void before() { + public static void before() { AtsClientService.get().clearCaches(); } @BeforeClass @AfterClass - public static void cleanup() { + public static void cleanup() { AtsTestUtil.cleanup(); } @org.junit.Test - public void testHandleTransitionValidation__NoAwas() { + public void testHandleTransitionValidation__NoAwas() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-A"); TransitionHelper helper = new TransitionHelper(getClass().getSimpleName(), EMPTY_AWAS, AtsTestUtil.getImplementStateDef().getName(), @@ -115,7 +115,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testHandleTransitionValidation__ToStateNotNull() { + public void testHandleTransitionValidation__ToStateNotNull() { TransitionHelper helper = new TransitionHelper(getClass().getSimpleName(), Arrays.asList(AtsTestUtil.getTeamWf()), null, Arrays.asList(AtsClientService.get().getUserService().getCurrentUser()), null, AtsClientService.get().createChangeSet(getClass().getSimpleName()), AtsClientService.get().getServices(), @@ -127,7 +127,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testHandleTransitionValidation__InvalidToState() { + public void testHandleTransitionValidation__InvalidToState() { TransitionHelper helper = new TransitionHelper(getClass().getSimpleName(), Arrays.asList(AtsTestUtil.getTeamWf()), "InvalidStateName", Arrays.asList(AtsClientService.get().getUserService().getCurrentUser()), null, AtsClientService.get().createChangeSet(getClass().getSimpleName()), AtsClientService.get().getServices(), @@ -140,7 +140,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testHandleTransitionValidation__MustBeAssigned() { + public void testHandleTransitionValidation__MustBeAssigned() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-B"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); IAtsTeamDefinition teamDef = teamArt.getTeamDefinition(); @@ -216,7 +216,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testHandleTransitionValidation__WorkingBranchTransitionable() { + public void testHandleTransitionValidation__WorkingBranchTransitionable() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-C"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); MockTransitionHelper helper = new MockTransitionHelper(getClass().getSimpleName(), Arrays.asList(teamArt), @@ -255,7 +255,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testHandleTransitionValidation__NoSystemUser() { + public void testHandleTransitionValidation__NoSystemUser() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-D"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); MockTransitionHelper helper = new MockTransitionHelper(getClass().getSimpleName(), Arrays.asList(teamArt), @@ -281,7 +281,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testIsStateTransitionable__ValidateXWidgets__RequiredForTransition() { + public void testIsStateTransitionable__ValidateXWidgets__RequiredForTransition() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-1"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); MockTransitionHelper helper = new MockTransitionHelper(getClass().getSimpleName(), Arrays.asList(teamArt), @@ -310,7 +310,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testIsStateTransitionable__ValidateXWidgets__RequiredForCompletion() { + public void testIsStateTransitionable__ValidateXWidgets__RequiredForCompletion() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-2"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); MockTransitionHelper helper = new MockTransitionHelper(getClass().getSimpleName(), Arrays.asList(teamArt), @@ -359,7 +359,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testIsStateTransitionable__ValidateTasks() { + public void testIsStateTransitionable__ValidateTasks() { TransitionResults results = new TransitionResults(); when(teamWf.isTeamWorkflow()).thenReturn(true); @@ -398,7 +398,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testIsStateTransitionable__RequireTargetedVersion__FromTeamDef() { + public void testIsStateTransitionable__RequireTargetedVersion__FromTeamDef() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-4"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); IAtsChangeSet changes = AtsClientService.get().createChangeSet(getClass().getSimpleName()); @@ -430,7 +430,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testIsStateTransitionable__RequireTargetedVersion__FromPageDef() { + public void testIsStateTransitionable__RequireTargetedVersion__FromPageDef() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-5"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); IAtsChangeSet changes = AtsClientService.get().createChangeSet(getClass().getSimpleName()); @@ -473,7 +473,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testIsStateTransitionable__ReviewsCompleted() { + public void testIsStateTransitionable__ReviewsCompleted() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-6"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); @@ -531,7 +531,7 @@ public class TransitionManagerTest { * transition) */ @org.junit.Test - public void testIsStateTransitionable__ToSameState() { + public void testIsStateTransitionable__ToSameState() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-8"); TeamWorkFlowArtifact teamArt01 = AtsTestUtil.getTeamWf(); TeamWorkFlowArtifact teamArt02 = AtsTestUtil.getTeamWf2(); @@ -578,7 +578,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testHandleTransitionValidation__AssigneesUpdate() { + public void testHandleTransitionValidation__AssigneesUpdate() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-E"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); List<IAtsUser> assigneesBefore = teamArt.getAssignees(); @@ -599,7 +599,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testHandleTransitionValidation__AssigneesNull() { + public void testHandleTransitionValidation__AssigneesNull() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-F"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); List<IAtsUser> assigneesBefore = teamArt.getAssignees(); @@ -621,7 +621,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testHandleTransition__PercentComplete() { + public void testHandleTransition__PercentComplete() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-G"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); @@ -677,7 +677,7 @@ public class TransitionManagerTest { } @org.junit.Test - public void testIsStateTransitionable__ReviewsCancelled() { + public void testIsStateTransitionable__ReviewsCancelled() { AtsTestUtil.cleanupAndReset("TransitionManagerTest-Cancel"); TeamWorkFlowArtifact teamArt = AtsTestUtil.getTeamWf(); TransitionResults results = new TransitionResults(); |