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 | |
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')
63 files changed, 178 insertions, 175 deletions
diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/access/AtsBranchAccessManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/access/AtsBranchAccessManagerTest.java index 1aeb0566895..3a96125abe2 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/access/AtsBranchAccessManagerTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/access/AtsBranchAccessManagerTest.java @@ -37,7 +37,7 @@ import org.junit.Test; public class AtsBranchAccessManagerTest { @Test - public void testIsApplicable() { + public void testIsApplicable() { AtsBranchAccessManager mgr = new AtsBranchAccessManager(); Assert.assertFalse(mgr.isApplicable(AtsClientService.get().getAtsBranch())); Assert.assertFalse(mgr.isApplicable(SAW_Bld_1)); @@ -54,7 +54,7 @@ public class AtsBranchAccessManagerTest { @Before @After - public void cleanup() { + public void cleanup() { TeamWorkFlowArtifact teamArt = (TeamWorkFlowArtifact) DemoTestUtil.getUncommittedActionWorkflow(DemoWorkType.Requirements); SkynetTransaction transaction = TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AbstractAtsActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AbstractAtsActionTest.java index 3ae09746eb5..ae772f42fc2 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AbstractAtsActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AbstractAtsActionTest.java @@ -36,5 +36,5 @@ public abstract class AbstractAtsActionTest { Assert.assertNotNull("Image should be specified", action.getImageDescriptor()); } - public abstract Action createAction() ; + public abstract Action createAction(); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AccessControlActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AccessControlActionTest.java index c8bae877ae3..9822925740d 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AccessControlActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AccessControlActionTest.java @@ -58,7 +58,7 @@ public class AccessControlActionTest extends AbstractAtsActionTest { } @Override - public Action createAction() { + public Action createAction() { AtsTestUtil.cleanupAndReset(getClass().getSimpleName()); return new AccessControlAction(AtsTestUtil.getTeamWf()); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AddNoteActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AddNoteActionTest.java index 8b49724f62a..225f5574771 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AddNoteActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/AddNoteActionTest.java @@ -34,7 +34,7 @@ public class AddNoteActionTest extends AbstractAtsActionTest { } @Override - public Action createAction() { + public Action createAction() { AtsTestUtil.cleanupAndReset(getClass().getSimpleName()); return new AddNoteAction(AtsTestUtil.getTeamWf(), new IDirtiableEditor() { diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/CopyActionDetailsActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/CopyActionDetailsActionTest.java index 4db414606d5..fec3f6b7169 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/CopyActionDetailsActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/CopyActionDetailsActionTest.java @@ -19,7 +19,7 @@ import org.eclipse.osee.ats.client.integration.tests.ats.core.client.AtsTestUtil public class CopyActionDetailsActionTest extends AbstractAtsActionRunTest { @Override - public CopyActionDetailsAction createAction() { + public CopyActionDetailsAction createAction() { return new CopyActionDetailsAction(AtsTestUtil.getTeamWf()); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DeletePurgeAtsArtifactsActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DeletePurgeAtsArtifactsActionTest.java index 3d4a8a9e8e7..b923d744848 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DeletePurgeAtsArtifactsActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DeletePurgeAtsArtifactsActionTest.java @@ -31,7 +31,7 @@ public class DeletePurgeAtsArtifactsActionTest extends AbstractAtsActionTest { } @Override - public DeletePurgeAtsArtifactsAction createAction() { + public DeletePurgeAtsArtifactsAction createAction() { AtsTestUtil.cleanupAndReset(getClass().getSimpleName()); return new DeletePurgeAtsArtifactsAction(AtsTestUtil.getSelectedAtsArtifactsForTeamWf(), true); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DuplicateWorkflowActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DuplicateWorkflowActionTest.java index 32f51f85f5d..8e9fa0c0473 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DuplicateWorkflowActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DuplicateWorkflowActionTest.java @@ -43,7 +43,7 @@ public class DuplicateWorkflowActionTest extends AbstractAtsActionRunTest { private IAtsTeamWorkflow dupTeamWf; @Override - public DuplicateWorkflowAction createAction() { + public DuplicateWorkflowAction createAction() { return new DuplicateWorkflowAction(Collections.singleton(AtsTestUtil.getTeamWf())); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DuplicateWorkflowViaWorldEditorActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DuplicateWorkflowViaWorldEditorActionTest.java index 7ebff8bc32b..9330e9386af 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DuplicateWorkflowViaWorldEditorActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/DuplicateWorkflowViaWorldEditorActionTest.java @@ -28,7 +28,7 @@ public class DuplicateWorkflowViaWorldEditorActionTest extends AbstractAtsAction } @Test(expected = OseeArgumentException.class) - public void testException() { + public void testException() { DuplicateWorkflowViaWorldEditorAction action = new DuplicateWorkflowViaWorldEditorAction(new SelectedAtsArtifactsAdapter()); action.runWithException(); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/NewGoalTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/NewGoalTest.java index 2334dda12a8..28d2e05e415 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/NewGoalTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/NewGoalTest.java @@ -27,7 +27,7 @@ public class NewGoalTest extends AbstractAtsActionRunTest { @BeforeClass @AfterClass - public static void cleanup() { + public static void cleanup() { SkynetTransaction transaction = TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), NewGoalTest.class.getSimpleName()); for (Artifact art : ArtifactQuery.getArtifactListFromName(NewGoalTest.class.getSimpleName(), diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenChangeReportByIdActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenChangeReportByIdActionTest.java index 65c6e384bdc..24a6ab5883c 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenChangeReportByIdActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenChangeReportByIdActionTest.java @@ -24,7 +24,7 @@ import org.junit.Test; public class OpenChangeReportByIdActionTest extends AbstractAtsActionRunTest { @Override - public OpenChangeReportByIdAction createAction() { + public OpenChangeReportByIdAction createAction() { Result result = AtsTestUtil.createWorkingBranchFromTeamWf(); Assert.assertTrue(result.getText(), result.isTrue()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest1.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest1.java index a63174a38d9..9c7a80b8347 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest1.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest1.java @@ -22,12 +22,12 @@ import org.junit.Test; public class OpenInAtsWorldActionTest1 extends AbstractAtsActionRunTest { @Override - public OpenInAtsWorldAction createAction() { + public OpenInAtsWorldAction createAction() { return new OpenInAtsWorldAction(AtsTestUtil.getTeamWf()); } @Test(expected = OseeStateException.class) - public void testNoParentAction() { + public void testNoParentAction() { AtsTestUtil.getTeamWf().deleteRelations(AtsRelationTypes.ActionToWorkflow_Action); AtsTestUtil.getTeamWf().persist(getClass().getSimpleName()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest2.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest2.java index 16441cad3ea..0b516cad5d0 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest2.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest2.java @@ -21,7 +21,7 @@ import org.eclipse.osee.ats.client.integration.tests.ats.core.client.AtsTestUtil public class OpenInAtsWorldActionTest2 extends AbstractAtsActionRunTest { @Override - public OpenInAtsWorldAction createAction() { + public OpenInAtsWorldAction createAction() { IAtsChangeSet changes = AtsClientService.get().createChangeSet(getClass().getSimpleName()); OpenInAtsWorldAction action = new OpenInAtsWorldAction(AtsTestUtil.getOrCreateTaskOffTeamWf1()); if (!changes.isEmpty()) { diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest3.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest3.java index ed64fbf9fa3..0acff93992e 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest3.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInAtsWorldActionTest3.java @@ -32,7 +32,7 @@ public class OpenInAtsWorldActionTest3 extends AbstractAtsActionRunTest { } @Override - public OpenInAtsWorldAction createAction() { + public OpenInAtsWorldAction createAction() { AtsTestUtil.getTeamWf().deleteRelations(AtsRelationTypes.ActionToWorkflow_Action); AtsTestUtil.getTeamWf().persist(getClass().getSimpleName()); return new OpenInAtsWorldAction(AtsTestUtil.getTeamWf()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInSkyWalkerActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInSkyWalkerActionTest.java index 41592df9ea5..d8321082b89 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInSkyWalkerActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenInSkyWalkerActionTest.java @@ -19,7 +19,7 @@ import org.eclipse.osee.ats.client.integration.tests.ats.core.client.AtsTestUtil public class OpenInSkyWalkerActionTest extends AbstractAtsActionRunTest { @Override - public OpenInSkyWalkerAction createAction() { + public OpenInSkyWalkerAction createAction() { return new OpenInSkyWalkerAction(AtsTestUtil.getTeamWf()); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsTaskEditorActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsTaskEditorActionTest.java index 9446afb445c..3109090fd8f 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsTaskEditorActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsTaskEditorActionTest.java @@ -56,17 +56,17 @@ public class OpenNewAtsTaskEditorActionTest extends AbstractAtsActionRunTest { } @Override - public void run(WorldEditor worldEditor, SearchType searchType, boolean forcePend) { + public void run(WorldEditor worldEditor, SearchType searchType, boolean forcePend) { // do nothing } @Override - public String getSelectedName(SearchType searchType) { + public String getSelectedName(SearchType searchType) { return null; } @Override - public IAtsVersion getTargetedVersionArtifact() { + public IAtsVersion getTargetedVersionArtifact() { return null; } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsTaskEditorSelectedTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsTaskEditorSelectedTest.java index 60887a9c3bc..481139c0a59 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsTaskEditorSelectedTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsTaskEditorSelectedTest.java @@ -28,7 +28,7 @@ public class OpenNewAtsTaskEditorSelectedTest extends AbstractAtsActionRunTest { return new OpenNewAtsTaskEditorSelected(new IOpenNewAtsTaskEditorSelectedHandler() { @Override - public List<Artifact> getSelectedArtifacts() { + public List<Artifact> getSelectedArtifacts() { return Arrays.asList(AtsTestUtil.getTeamWf()); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsWorldEditorSelectedActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsWorldEditorSelectedActionTest.java index dd254d599e5..9bc188204ea 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsWorldEditorSelectedActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenNewAtsWorldEditorSelectedActionTest.java @@ -28,7 +28,7 @@ public class OpenNewAtsWorldEditorSelectedActionTest extends AbstractAtsActionRu return new OpenNewAtsWorldEditorSelectedAction(new IOpenNewAtsWorldEditorSelectedHandler() { @Override - public List<Artifact> getSelectedArtifacts() { + public List<Artifact> getSelectedArtifacts() { return Arrays.asList((Artifact) AtsTestUtil.getTeamWf()); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenParentActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenParentActionTest.java index a2d72d092ef..15b93c68d40 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenParentActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenParentActionTest.java @@ -21,7 +21,7 @@ import org.eclipse.osee.ats.client.integration.tests.ats.core.client.AtsTestUtil public class OpenParentActionTest extends AbstractAtsActionRunTest { @Override - public OpenParentAction createAction() { + public OpenParentAction createAction() { IAtsChangeSet changes = AtsClientService.get().createChangeSet(getClass().getSimpleName()); OpenParentAction action = new OpenParentAction(AtsTestUtil.getOrCreateTaskOffTeamWf1()); if (!changes.isEmpty()) { diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenWorkflowByIdActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenWorkflowByIdActionTest.java index 4f36d671944..158bbe8002d 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenWorkflowByIdActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenWorkflowByIdActionTest.java @@ -20,7 +20,7 @@ import org.eclipse.osee.ats.client.integration.tests.ats.core.client.AtsTestUtil public class OpenWorkflowByIdActionTest extends AbstractAtsActionRunTest { @Override - public Action createAction() { + public Action createAction() { OpenWorkflowByIdAction action = new OpenWorkflowByIdAction(); action.setPend(true); action.setOverrideId(AtsTestUtil.getTeamWf().getAtsId()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenWorldByIdActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenWorldByIdActionTest.java index e089a464af9..8e38d0b5ea5 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenWorldByIdActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/OpenWorldByIdActionTest.java @@ -19,7 +19,7 @@ import org.eclipse.osee.ats.client.integration.tests.ats.core.client.AtsTestUtil public class OpenWorldByIdActionTest extends AbstractAtsActionRunTest { @Override - public OpenWorldByIdAction createAction() { + public OpenWorldByIdAction createAction() { OpenWorldByIdAction action = new OpenWorldByIdAction(); action.setOverrideIdString(AtsTestUtil.getTeamWf().getAtsId()); action.setPend(true); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ReloadActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ReloadActionTest.java index 31d64ce5051..e38e12463e4 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ReloadActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ReloadActionTest.java @@ -19,7 +19,7 @@ import org.eclipse.osee.ats.client.integration.tests.ats.core.client.AtsTestUtil public class ReloadActionTest extends AbstractAtsActionRunTest { @Override - public ReloadAction createAction() { + public ReloadAction createAction() { return new ReloadAction(AtsTestUtil.getTeamWf()); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ResourceHistoryActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ResourceHistoryActionTest.java index d52022ef940..dd971cabc4e 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ResourceHistoryActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ResourceHistoryActionTest.java @@ -36,7 +36,7 @@ public class ResourceHistoryActionTest extends AbstractAtsActionTest { } @Override - public ResourceHistoryAction createAction() { + public ResourceHistoryAction createAction() { return new ResourceHistoryAction(AtsTestUtil.getTeamWf()); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowBranchChangeDataActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowBranchChangeDataActionTest.java index 6319e4728fd..d9950a2fede 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowBranchChangeDataActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowBranchChangeDataActionTest.java @@ -22,7 +22,7 @@ import org.junit.Test; public class ShowBranchChangeDataActionTest extends AbstractAtsActionRunTest { @Override - public ShowBranchChangeDataAction createAction() { + public ShowBranchChangeDataAction createAction() { AtsTestUtil.cleanupAndReset(getClass().getSimpleName()); Result result = AtsTestUtil.createWorkingBranchFromTeamWf(); Assert.assertTrue(result.getText(), result.isTrue()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowChangeReportActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowChangeReportActionTest.java index 5c3f0de9b91..95cb93618db 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowChangeReportActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowChangeReportActionTest.java @@ -24,7 +24,7 @@ import org.junit.Test; public class ShowChangeReportActionTest extends AbstractAtsActionRunTest { @Override - public ShowChangeReportAction createAction() { + public ShowChangeReportAction createAction() { AtsTestUtil.cleanupAndReset(getClass().getSimpleName()); Result result = AtsTestUtil.createWorkingBranchFromTeamWf(); Assert.assertTrue(result.getText(), result.isTrue()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowMergeManagerActionTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowMergeManagerActionTest.java index ad703000014..715a2c136a2 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowMergeManagerActionTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/actions/ShowMergeManagerActionTest.java @@ -38,7 +38,7 @@ public class ShowMergeManagerActionTest extends AbstractAtsActionRunTest { } @Override - public ShowMergeManagerAction createAction() { + public ShowMergeManagerAction createAction() { AtsTestUtil.cleanupAndReset(getClass().getSimpleName()); Result result = AtsTestUtil.createWorkingBranchFromTeamWf(); createdBranch = AtsTestUtil.getTeamWf().getWorkingBranch(); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/CategoryColumnTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/CategoryColumnTest.java index 6480e450376..dc187d84491 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/CategoryColumnTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/CategoryColumnTest.java @@ -33,15 +33,15 @@ public class CategoryColumnTest { @BeforeClass @AfterClass - public static void cleanup() { + public static void cleanup() { TeamWorkFlowArtifact codeArt = (TeamWorkFlowArtifact) DemoTestUtil.getUncommittedActionWorkflow(DemoWorkType.Code); TeamWorkFlowArtifact reqArt = (TeamWorkFlowArtifact) DemoTestUtil.getUncommittedActionWorkflow(DemoWorkType.Requirements); TeamWorkFlowArtifact testArt = (TeamWorkFlowArtifact) DemoTestUtil.getUncommittedActionWorkflow(DemoWorkType.Test); - SkynetTransaction transaction = - TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), CategoryColumnTest.class.getSimpleName()); + SkynetTransaction transaction = TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), + CategoryColumnTest.class.getSimpleName()); codeArt.deleteAttributes(AtsAttributeTypes.Category1); codeArt.persist(transaction); reqArt.deleteAttributes(AtsAttributeTypes.Category1); @@ -72,8 +72,8 @@ public class CategoryColumnTest { Assert.assertEquals("", CategoryColumn.getCategory1Instance().getColumnText(actionArt, CategoryColumn.getCategory1Instance(), 0)); - SkynetTransaction transaction = - TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), CategoryColumnTest.class.getSimpleName()); + SkynetTransaction transaction = TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), + CategoryColumnTest.class.getSimpleName()); codeArt.addAttribute(AtsAttributeTypes.Category1, "this"); codeArt.persist(transaction); reqArt.addAttribute(AtsAttributeTypes.Category1, "that"); @@ -96,8 +96,8 @@ public class CategoryColumnTest { Assert.assertTrue(actionArtStr.contains("that")); Assert.assertTrue(actionArtStr.contains("the other")); - transaction = - TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), CategoryColumnTest.class.getSimpleName()); + transaction = TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), + CategoryColumnTest.class.getSimpleName()); codeArt.deleteAttributes(AtsAttributeTypes.Category1); codeArt.persist(transaction); reqArt.deleteSoleAttribute(AtsAttributeTypes.Category1); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/ChangeTypeColumnTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/ChangeTypeColumnTest.java index be5a7ef0c1b..8784d584885 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/ChangeTypeColumnTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/ChangeTypeColumnTest.java @@ -32,7 +32,7 @@ public class ChangeTypeColumnTest { @BeforeClass @AfterClass - public static void cleanup() { + public static void cleanup() { TeamWorkFlowArtifact reqArt = (TeamWorkFlowArtifact) DemoTestUtil.getUncommittedActionWorkflow(DemoWorkType.Requirements); reqArt.setSoleAttributeValue(AtsAttributeTypes.ChangeType, ChangeType.Problem.name()); @@ -46,7 +46,8 @@ public class ChangeTypeColumnTest { TeamWorkFlowArtifact codeArt = (TeamWorkFlowArtifact) DemoTestUtil.getUncommittedActionWorkflow(DemoWorkType.Code); Assert.assertEquals(ChangeType.Problem, ChangeTypeUtil.getChangeType(codeArt)); - Assert.assertNotNull(ChangeTypeColumnUI.getInstance().getColumnImage(codeArt, ChangeTypeColumnUI.getInstance(), 0)); + Assert.assertNotNull( + ChangeTypeColumnUI.getInstance().getColumnImage(codeArt, ChangeTypeColumnUI.getInstance(), 0)); IAtsAction action = codeArt.getParentAction(); Assert.assertEquals(ChangeType.Problem, ChangeTypeUtil.getChangeType(action)); @@ -69,7 +70,8 @@ public class ChangeTypeColumnTest { reqArt.persist(CategoryColumnTest.class.getSimpleName()); Assert.assertEquals(ChangeType.Improvement, ChangeTypeUtil.getChangeType(reqArt)); - Assert.assertNotNull(ChangeTypeColumnUI.getInstance().getColumnImage(reqArt, ChangeTypeColumnUI.getInstance(), 0)); + Assert.assertNotNull( + ChangeTypeColumnUI.getInstance().getColumnImage(reqArt, ChangeTypeColumnUI.getInstance(), 0)); Assert.assertEquals(ChangeType.Problem, ChangeTypeUtil.getChangeType(action)); String columnText = ChangeTypeColumnUI.getInstance().getColumnText(action, ChangeTypeColumnUI.getInstance(), 0); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/PriorityColumnTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/PriorityColumnTest.java index 318e4985327..c4c10bb54fe 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/PriorityColumnTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/column/PriorityColumnTest.java @@ -38,7 +38,8 @@ public class PriorityColumnTest { TeamWorkFlowArtifact codeArt = (TeamWorkFlowArtifact) DemoTestUtil.getUncommittedActionWorkflow(DemoWorkType.Code); - Assert.assertEquals("3", PriorityColumnUI.getInstance().getColumnText(codeArt, PriorityColumnUI.getInstance(), 0)); + Assert.assertEquals("3", + PriorityColumnUI.getInstance().getColumnText(codeArt, PriorityColumnUI.getInstance(), 0)); PeerToPeerReviewArtifact peerArt = (PeerToPeerReviewArtifact) codeArt.getRelatedArtifact(AtsRelationTypes.TeamWorkflowToReview_Review); @@ -49,7 +50,8 @@ public class PriorityColumnTest { Assert.assertEquals("", PriorityColumnUI.getInstance().getColumnText(taskArt, PriorityColumnUI.getInstance(), 0)); Artifact actionArt = reqArt.getParentActionArtifact(); - Assert.assertEquals("3", PriorityColumnUI.getInstance().getColumnText(actionArt, PriorityColumnUI.getInstance(), 0)); + Assert.assertEquals("3", + PriorityColumnUI.getInstance().getColumnText(actionArt, PriorityColumnUI.getInstance(), 0)); TestUtil.severeLoggingEnd(loggingMonitor); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/AtsConfigEndpointImplClientIntegrationTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/AtsConfigEndpointImplClientIntegrationTest.java index ed787cf7a65..c1e3ecc2054 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/AtsConfigEndpointImplClientIntegrationTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/AtsConfigEndpointImplClientIntegrationTest.java @@ -23,7 +23,7 @@ import org.junit.Assert; public class AtsConfigEndpointImplClientIntegrationTest { @org.junit.Test - public void testAlive() { + public void testAlive() { AtsConfigEndpointApi configEp = AtsClientService.getConfigEndpoint(); XResultData resultData = configEp.alive(); Assert.assertEquals("Alive", resultData.getResults().iterator().next()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/copy/CopyAtsConfigurationOperationTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/copy/CopyAtsConfigurationOperationTest.java index 1658a8a5342..5b7911162d0 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/copy/CopyAtsConfigurationOperationTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/copy/CopyAtsConfigurationOperationTest.java @@ -43,7 +43,7 @@ public class CopyAtsConfigurationOperationTest { } @Test - public void testDoWork() { + public void testDoWork() { ConfigData data = CopyAtsValidationTest.getConfigData(); XResultData rd = new XResultData(false); @@ -64,7 +64,7 @@ public class CopyAtsConfigurationOperationTest { Assert.assertEquals(0, results.getTestNameToResultsMap().size()); } - public static Set<IAtsActionableItem> getActionableItemsNameStartsWith(String prefix) { + public static Set<IAtsActionableItem> getActionableItemsNameStartsWith(String prefix) { Set<IAtsActionableItem> artifacts = new HashSet<>(); for (IAtsActionableItem aia : AtsClientService.get().getQueryService().createQuery( AtsArtifactTypes.ActionableItem).getItems(IAtsActionableItem.class)) { diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/copy/CopyAtsValidationTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/copy/CopyAtsValidationTest.java index 29cef33f8b2..7d62159f819 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/copy/CopyAtsValidationTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/copy/CopyAtsValidationTest.java @@ -36,7 +36,7 @@ public class CopyAtsValidationTest { } @Test - public void testValidate() { + public void testValidate() { // set name to one that can't be converted ConfigData data = getConfigData(); @@ -60,7 +60,7 @@ public class CopyAtsValidationTest { Assert.assertEquals(0, results.getNumErrors()); } - public static ConfigData getConfigData() { + public static ConfigData getConfigData() { ConfigData data = new ConfigData(); data.setReplaceStr("CISv2"); data.setSearchStr("CIS"); 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(); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/demo/AtsTest_DemoPopulateAndTest_Suite.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/demo/AtsTest_DemoPopulateAndTest_Suite.java index cb14600c58c..5be5f9ba9a8 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/demo/AtsTest_DemoPopulateAndTest_Suite.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/demo/AtsTest_DemoPopulateAndTest_Suite.java @@ -100,7 +100,7 @@ public class AtsTest_DemoPopulateAndTest_Suite { OseeLog.log(AtsTest_DemoPopulateAndTest_Suite.class, Level.SEVERE, "\nBegin Populate Demo DB..."); } - private static void validateArtifactCache() { + private static void validateArtifactCache() { final Collection<Artifact> list = ArtifactCache.getDirtyArtifacts(); if (!list.isEmpty()) { for (Artifact artifact : list) { diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/demo/IPopulateDemoDatabaseTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/demo/IPopulateDemoDatabaseTest.java index 9f17cd369ac..a6d95ca44e4 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/demo/IPopulateDemoDatabaseTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/demo/IPopulateDemoDatabaseTest.java @@ -37,12 +37,12 @@ public interface IPopulateDemoDatabaseTest { Assert.assertTrue(true); } - default void testTaskContents(TaskArtifact task, String currentStateName, String relatedToState) { + default void testTaskContents(TaskArtifact task, String currentStateName, String relatedToState) { Assert.assertEquals(currentStateName, task.getCurrentStateName()); Assert.assertEquals(relatedToState, task.getSoleAttributeValue(AtsAttributeTypes.RelatedToState, "")); } - default void testReviewContents(IAtsAbstractReview review, String title, String currentStateName, String... assigneeStrs) { + default void testReviewContents(IAtsAbstractReview review, String title, String currentStateName, String... assigneeStrs) { Assert.assertEquals(title, review.getName()); Assert.assertEquals(currentStateName, review.getStateMgr().getCurrentStateName()); @@ -56,7 +56,7 @@ public interface IPopulateDemoDatabaseTest { } } - default void testTeamContents(IAtsTeamWorkflow teamWf, String title, String priority, String versionName, String currentStateName, String actionableItemStr, String assigneeStr, IArtifactType artifactType, IAtsTeamDefinition teamDef) { + default void testTeamContents(IAtsTeamWorkflow teamWf, String title, String priority, String versionName, String currentStateName, String actionableItemStr, String assigneeStr, IArtifactType artifactType, IAtsTeamDefinition teamDef) { Assert.assertEquals(currentStateName, teamWf.getStateMgr().getCurrentStateName()); Assert.assertEquals(priority, AtsClientService.get().getAttributeResolver().getSoleAttributeValue(teamWf, AtsAttributeTypes.PriorityType, "")); @@ -74,7 +74,7 @@ public interface IPopulateDemoDatabaseTest { AtsClientService.get().getWorkItemService().getActionableItemService().getActionableItemsStr(teamWf)); } - default void testSwDesign1PeerAnd1DecisionReview(TeamWorkFlowArtifact designTeam) { + default void testSwDesign1PeerAnd1DecisionReview(TeamWorkFlowArtifact designTeam) { Assert.assertNotNull(designTeam); PeerToPeerReviewArtifact peerArt = null; DecisionReviewArtifact decArt = null; diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsDecisionReviewDecisionStateItemTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsDecisionReviewDecisionStateItemTest.java index b125263e641..9db1cf20351 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsDecisionReviewDecisionStateItemTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsDecisionReviewDecisionStateItemTest.java @@ -65,7 +65,7 @@ public class AtsDecisionReviewDecisionStateItemTest { } @Test - public void testXWidgetCreating() { + public void testXWidgetCreating() { Assert.assertNotNull(decRevArt); // setup fake combo that will hold values @@ -86,7 +86,7 @@ public class AtsDecisionReviewDecisionStateItemTest { } @Test - public void testGetOverrideTransitionToAssignees() { + public void testGetOverrideTransitionToAssignees() { Assert.assertNotNull(decRevArt); // setup fake combo that will hold values @@ -110,7 +110,7 @@ public class AtsDecisionReviewDecisionStateItemTest { } @Test - public void testGetOverrideTransitionToStateName() { + public void testGetOverrideTransitionToStateName() { Assert.assertNotNull(decRevArt); // setup fake combo that will hold values diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsDecisionReviewPrepareStateItemTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsDecisionReviewPrepareStateItemTest.java index 2f9fccfe560..bb71d69afd2 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsDecisionReviewPrepareStateItemTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsDecisionReviewPrepareStateItemTest.java @@ -59,7 +59,7 @@ public class AtsDecisionReviewPrepareStateItemTest { } @Test - public void testTransitioning() { + public void testTransitioning() { Assert.assertNotNull(decRevArt); // set valid options diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsForceAssigneesToTeamLeadsStateItemTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsForceAssigneesToTeamLeadsStateItemTest.java index 3633d8c64b8..89ccc55f23f 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsForceAssigneesToTeamLeadsStateItemTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsForceAssigneesToTeamLeadsStateItemTest.java @@ -67,7 +67,7 @@ public class AtsForceAssigneesToTeamLeadsStateItemTest { } @Test - public void testTransitioned() { + public void testTransitioned() { Assert.assertNotNull(teamArt); // assignee should be Joe Smith diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsPeerToPeerReviewPrepareStateItemTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsPeerToPeerReviewPrepareStateItemTest.java index cdbe75416f9..5bbe852c4de 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsPeerToPeerReviewPrepareStateItemTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsPeerToPeerReviewPrepareStateItemTest.java @@ -69,7 +69,7 @@ public class AtsPeerToPeerReviewPrepareStateItemTest { } @Test - public void testTransitioning() { + public void testTransitioning() { Assert.assertNotNull(peerRevArt); // setup fake combo that will hold values diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsPeerToPeerReviewReviewStateItemTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsPeerToPeerReviewReviewStateItemTest.java index e019ed0bc39..874672c556f 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsPeerToPeerReviewReviewStateItemTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/editor/stateItem/AtsPeerToPeerReviewReviewStateItemTest.java @@ -61,7 +61,7 @@ public class AtsPeerToPeerReviewReviewStateItemTest { } @Test - public void testTransitioned() { + public void testTransitioned() { Assert.assertNotNull(peerRevArt); // assignee should be user creating review diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/ev/EarnedValueReportOperationTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/ev/EarnedValueReportOperationTest.java index edaa7badcb5..fe96d1f1a1e 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/ev/EarnedValueReportOperationTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/ev/EarnedValueReportOperationTest.java @@ -35,7 +35,7 @@ import org.junit.Test; public class EarnedValueReportOperationTest { @Test - public void testReport() { + public void testReport() { List<IAtsTeamDefinition> teamDefs = new ArrayList<>(); IAtsTeamDefinition teamDef = AtsClientService.get().getCache().getAtsObject(DemoArtifactToken.SAW_SW); teamDefs.add(teamDef); @@ -65,7 +65,7 @@ public class EarnedValueReportOperationTest { } @Test - public void testEmptyReport() { + public void testEmptyReport() { List<IAtsWorkPackage> workPackages = Arrays.asList(AtsClientService.get().getEarnedValueService().getWorkPackage( AtsClientService.get().getArtifact(DemoArtifactToken.SAW_Test_AI_WorkPackage_0C))); Assert.assertEquals(1, workPackages.size()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/ev/SearchWorkPackageOperationTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/ev/SearchWorkPackageOperationTest.java index 99d1b4bdd9f..64210605355 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/ev/SearchWorkPackageOperationTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/ev/SearchWorkPackageOperationTest.java @@ -72,8 +72,8 @@ public class SearchWorkPackageOperationTest { new ArrayList<Long>(), false, Active.Both, EMPYT_RESULTS); addTest(data, "3 work packages should be returned", Arrays.asList(DemoArtifactToken.SAW_SW.getId()), true, new ArrayList<Long>(), false, Active.Both, Arrays.asList(WP_01, WP_02, WP_03)); - addTest(data, "2 active work packages should be returned", Arrays.asList(DemoArtifactToken.SAW_SW.getId()), - true, new ArrayList<Long>(), false, Active.Active, Arrays.asList(WP_01, WP_02)); + addTest(data, "2 active work packages should be returned", Arrays.asList(DemoArtifactToken.SAW_SW.getId()), true, + new ArrayList<Long>(), false, Active.Active, Arrays.asList(WP_01, WP_02)); addTest(data, "1 in-active work packages should be returned", Arrays.asList(DemoArtifactToken.SAW_SW.getId()), true, new ArrayList<Long>(), false, Active.InActive, Arrays.asList(WP_03)); @@ -88,19 +88,18 @@ public class SearchWorkPackageOperationTest { Arrays.asList(DemoArtifactToken.SAW_CSCI_AI.getId()), true, Active.InActive, Arrays.asList(WP_0C)); // Test configured by both - addTest(data, "4 active work packages should be returned", Arrays.asList(DemoArtifactToken.SAW_SW.getId()), - true, Arrays.asList(DemoArtifactToken.SAW_Test_AI.getId()), true, Active.Active, + addTest(data, "4 active work packages should be returned", Arrays.asList(DemoArtifactToken.SAW_SW.getId()), true, + Arrays.asList(DemoArtifactToken.SAW_Test_AI.getId()), true, Active.Active, Arrays.asList(WP_01, WP_02, WP_0A, WP_0B)); return data; } @Test - public void testSearchResults() { + public void testSearchResults() { List<IAtsTeamDefinition> teamDefs = new ArrayList<>(); for (Long teamDefUuid : teamDefUuids) { - IAtsTeamDefinition teamDef = - AtsClientService.get().getCache().getAtsObject(teamDefUuid); + IAtsTeamDefinition teamDef = AtsClientService.get().getCache().getAtsObject(teamDefUuid); teamDefs.add(teamDef); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/navigate/SubscribeUtilityTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/navigate/SubscribeUtilityTest.java index ec6d3e5c177..bfacf8cc915 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/navigate/SubscribeUtilityTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/navigate/SubscribeUtilityTest.java @@ -34,14 +34,14 @@ public class SubscribeUtilityTest { @BeforeClass @AfterClass - public static void cleanup() { + public static void cleanup() { Artifact userArt = getAlexUserArtifact(); userArt.deleteRelations(CoreRelationTypes.Users_Artifact); userArt.persist(SubscribeUtilityTest.class.getSimpleName() + " - cleanup"); } @Test - public void test() { + public void test() { Artifact alexUserArt = getAlexUserArtifact(); Assert.assertEquals("Should be nothing subscribed by alex", 0, alexUserArt.getRelatedArtifactsCount(CoreRelationTypes.Users_Artifact)); @@ -76,7 +76,7 @@ public class SubscribeUtilityTest { Assert.assertFalse("User artifact changes should be persisted", alexUserArt.isDirty()); } - private static Artifact getAlexUserArtifact() { + private static Artifact getAlexUserArtifact() { return ArtifactQuery.getArtifactFromToken(DemoUsers.Alex_Kay); } diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/render/RendererManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/render/RendererManagerTest.java index 9144aed656a..f5d942fb078 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/render/RendererManagerTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/render/RendererManagerTest.java @@ -76,7 +76,7 @@ public class RendererManagerTest { } @Test - public void testGetBestRenderer() { + public void testGetBestRenderer() { Artifact artifact = new Artifact(CoreBranches.COMMON, artifactType); if (defaultOption == Both) { @@ -87,7 +87,7 @@ public class RendererManagerTest { } } - private void testGetBestRendererWithOption(Artifact artifact, DefaultOption option) { + private void testGetBestRendererWithOption(Artifact artifact, DefaultOption option) { UserManager.setSetting(UserManager.DOUBLE_CLICK_SETTING_KEY_ART_EDIT, String.valueOf(option == On)); if (clazz == null) { @@ -107,7 +107,7 @@ public class RendererManagerTest { } } - private IRenderer computeRenderer(Artifact artifact) { + private IRenderer computeRenderer(Artifact artifact) { IRenderer renderer = RendererManager.getBestRenderer(presentationType, artifact); Assert.assertNotNull(renderer); return renderer; diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/AtsChangeSetTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/AtsChangeSetTest.java index c07f7eaa7ee..f1fb6818257 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/AtsChangeSetTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/AtsChangeSetTest.java @@ -45,8 +45,8 @@ public class AtsChangeSetTest { SkynetTransaction transaction = TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), getClass().getSimpleName()); - folderArt = - ArtifactTypeManager.addArtifact(CoreArtifactTypes.Folder, AtsClientService.get().getAtsBranch(), "AtsChangeSetTest"); + folderArt = ArtifactTypeManager.addArtifact(CoreArtifactTypes.Folder, AtsClientService.get().getAtsBranch(), + "AtsChangeSetTest"); folderArt.setSoleAttributeValue(CoreAttributeTypes.StaticId, "my static id"); folderArt.persist(transaction); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/AtsDeleteManagerTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/AtsDeleteManagerTest.java index ba597752ccc..5f08fd8ae57 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/AtsDeleteManagerTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/AtsDeleteManagerTest.java @@ -160,7 +160,7 @@ public class AtsDeleteManagerTest { verifyExists(TestNames.ActionPurge, 0, 0, 0, 0, 0); } - private void verifyExists(TestNames testName, int expectedNumActions, int expectedNumCodeWorkflows, int expectedNumReqWorkflows, int expectedNumTasks, int expectedNumReviews) { + private void verifyExists(TestNames testName, int expectedNumActions, int expectedNumCodeWorkflows, int expectedNumReqWorkflows, int expectedNumTasks, int expectedNumReviews) { List<Artifact> artifacts = ArtifactQuery.getArtifactListFromName(testName.toString(), AtsClientService.get().getAtsBranch(), EXCLUDE_DELETED, QueryOption.CONTAINS_MATCH_OPTIONS); CountingMap<IArtifactType> countMap = new CountingMap<>(); @@ -180,7 +180,7 @@ public class AtsDeleteManagerTest { Assert.assertEquals(message, expectedCount, actualCount); } - private IAtsTeamWorkflow createAction(TestNames testName, Collection<IAtsActionableItem> actionableItems) { + private IAtsTeamWorkflow createAction(TestNames testName, Collection<IAtsActionableItem> actionableItems) { IAtsChangeSet changes = AtsClientService.get().createChangeSet("Delete Manager Test - testActionPurge"); Date createdDate = new Date(); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/CreateActionUsingAllActionableItemsTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/CreateActionUsingAllActionableItemsTest.java index 556f6f1f5fd..97c55e19fcb 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/CreateActionUsingAllActionableItemsTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/CreateActionUsingAllActionableItemsTest.java @@ -34,7 +34,7 @@ public class CreateActionUsingAllActionableItemsTest { @BeforeClass @AfterClass - public static void cleanup() { + public static void cleanup() { AtsBulkLoad.reloadConfig(true); SkynetTransaction transaction = TransactionManager.createTransaction(AtsClientService.get().getAtsBranch(), CreateActionUsingAllActionableItemsTest.class.getSimpleName()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/ImportActionsViaSpreadsheetTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/ImportActionsViaSpreadsheetTest.java index 30af1218e3c..71937d4477e 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/ImportActionsViaSpreadsheetTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/util/ImportActionsViaSpreadsheetTest.java @@ -77,8 +77,8 @@ public class ImportActionsViaSpreadsheetTest { XResultData rd = blam.importActions(file, null, ImportOption.NONE); Assert.assertEquals("No errors should be reported", "", rd.toString()); - List<Artifact> arts = - ArtifactQuery.getArtifactListFromName(FIRST_ACTION_TITLE, AtsClientService.get().getAtsBranch(), EXCLUDE_DELETED); + List<Artifact> arts = ArtifactQuery.getArtifactListFromName(FIRST_ACTION_TITLE, + AtsClientService.get().getAtsBranch(), EXCLUDE_DELETED); Assert.assertEquals("One Action and 3 Team Workflows should be created", 4, arts.size()); int codeCount = 0, testCount = 0; TeamWorkFlowArtifact testWf = null; diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/world/search/LegacyPcrIdQuickSearchTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/world/search/LegacyPcrIdQuickSearchTest.java index 11b60b27a72..18e668b80b9 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/world/search/LegacyPcrIdQuickSearchTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/world/search/LegacyPcrIdQuickSearchTest.java @@ -36,7 +36,7 @@ public class LegacyPcrIdQuickSearchTest { } @Test - public void testPerformSearch() { + public void testPerformSearch() { AtsTestUtil.cleanupAndReset(getClass().getSimpleName() + ".testPerformSearch"); TeamWorkFlowArtifact teamWf = AtsTestUtil.getTeamWf(); teamWf.persist(getClass().getSimpleName()); diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/world/search/TeamDefinitionQuickSearchTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/world/search/TeamDefinitionQuickSearchTest.java index e2aa9a868ea..3379fcb907e 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/world/search/TeamDefinitionQuickSearchTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/world/search/TeamDefinitionQuickSearchTest.java @@ -39,7 +39,7 @@ public class TeamDefinitionQuickSearchTest { } @Test - public void testPerformSearch() { + public void testPerformSearch() { AtsTestUtil.cleanupAndReset(getClass().getSimpleName() + ".testPerformSearch"); TeamWorkFlowArtifact teamWf = AtsTestUtil.getTeamWf(); teamWf.persist(getClass().getSimpleName()); |