Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2015-12-23 14:54:49 -0500
committerRyan D. Brooks2015-12-23 14:54:49 -0500
commit82b1c027fa407dcdeaae4676c91681e3cdd9fa6c (patch)
tree2c235ec876df29269b683ed69ecf2ef432375ec9 /plugins/org.eclipse.osee.ats.core.test
parentad0d071519a7e37e8d6f81906c4c9690a3de3a31 (diff)
downloadorg.eclipse.osee-82b1c027fa407dcdeaae4676c91681e3cdd9fa6c.tar.gz
org.eclipse.osee-82b1c027fa407dcdeaae4676c91681e3cdd9fa6c.tar.xz
org.eclipse.osee-82b1c027fa407dcdeaae4676c91681e3cdd9fa6c.zip
refinement: Re-Organize, Format and Cleanup source
Diffstat (limited to 'plugins/org.eclipse.osee.ats.core.test')
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/ai/ModifyActionableItemsTest.java25
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ActivityIdColumnTest.java6
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageGuidUtilityTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageIdUtilityTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageNameUtilityTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageProgramUtilityTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageTypeUtilityTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/state/AtsWorkStateFactoryTest.java1
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/state/StateManagerStoreTest.java10
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/util/AtsIdProviderTest.java41
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/model/impl/AtsCore_ModelImpl_JT_Suite.java6
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/users/CoreAtsUsersTest.java4
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsObjectsTest.java3
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXComboBooleanValidatorTest.java15
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXComboValidatorTest.java15
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXDateValidatorTest.java15
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXFloatValidatorTest.java20
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXIntegerValidatorTest.java20
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXListValidatorTest.java20
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXTextValidatorTest.java15
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXWidgetValidatorTest.java3
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/MockStateDefinition.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/MockWorkDefinition.java3
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/ReviewBlockTypeTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/RuleDefinitionOptionTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/StateColorTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/StateEventTypeTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/StateTypeTest.java2
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/state/StateManagerUtilityTest.java4
-rw-r--r--plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/transition/TransitionHelperTest.java25
30 files changed, 120 insertions, 153 deletions
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/ai/ModifyActionableItemsTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/ai/ModifyActionableItemsTest.java
index ba958b5acd..a885da865a 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/ai/ModifyActionableItemsTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/ai/ModifyActionableItemsTest.java
@@ -56,9 +56,8 @@ public class ModifyActionableItemsTest {
List<IAtsActionableItem> currWorkflowDesiredAIs = Arrays.asList(ai1, ai2);
List<IAtsActionableItem> newAIs = Collections.emptyList();
- ModifyActionableItems job =
- new ModifyActionableItems(results, teamWf, currAIsForAllWfs, currWorkflowDesiredAIs, newAIs, modifiedBy,
- teamDefUtil);
+ ModifyActionableItems job = new ModifyActionableItems(results, teamWf, currAIsForAllWfs, currWorkflowDesiredAIs,
+ newAIs, modifiedBy, teamDefUtil);
job.performModification();
Assert.assertEquals(1, job.getAddAis().size());
@@ -75,9 +74,8 @@ public class ModifyActionableItemsTest {
List<IAtsActionableItem> currWorkflowDesiredAIs = Arrays.asList(ai1);
List<IAtsActionableItem> newAIs = Collections.emptyList();
- ModifyActionableItems job =
- new ModifyActionableItems(results, teamWf, currAIsForAllWfs, currWorkflowDesiredAIs, newAIs, modifiedBy,
- teamDefUtil);
+ ModifyActionableItems job = new ModifyActionableItems(results, teamWf, currAIsForAllWfs, currWorkflowDesiredAIs,
+ newAIs, modifiedBy, teamDefUtil);
job.performModification();
Assert.assertEquals(0, job.getAddAis().size());
@@ -94,9 +92,8 @@ public class ModifyActionableItemsTest {
List<IAtsActionableItem> currWorkflowDesiredAIs = Collections.emptyList();
List<IAtsActionableItem> newAIs = Collections.emptyList();
- ModifyActionableItems job =
- new ModifyActionableItems(results, teamWf, currAIsForAllWfs, currWorkflowDesiredAIs, newAIs, modifiedBy,
- teamDefUtil);
+ ModifyActionableItems job = new ModifyActionableItems(results, teamWf, currAIsForAllWfs, currWorkflowDesiredAIs,
+ newAIs, modifiedBy, teamDefUtil);
job.performModification();
Assert.assertTrue(results.toString().contains("Error: All AIs can not be removed"));
@@ -118,9 +115,8 @@ public class ModifyActionableItemsTest {
List<IAtsActionableItem> currWorkflowDesiredAIs = Arrays.asList(ai1, ai2);
List<IAtsActionableItem> newAIs = Arrays.asList(ai3);
- ModifyActionableItems job =
- new ModifyActionableItems(results, teamWf, currAIsForAllWfs, currWorkflowDesiredAIs, newAIs, modifiedBy,
- teamDefUtil);
+ ModifyActionableItems job = new ModifyActionableItems(results, teamWf, currAIsForAllWfs, currWorkflowDesiredAIs,
+ newAIs, modifiedBy, teamDefUtil);
job.performModification();
Assert.assertEquals(0, job.getAddAis().size());
@@ -148,9 +144,8 @@ public class ModifyActionableItemsTest {
List<IAtsActionableItem> currWorkflowDesiredAIs = Arrays.asList(ai1, ai2);
List<IAtsActionableItem> newAIs = Arrays.asList(ai2);
- ModifyActionableItems job =
- new ModifyActionableItems(results, teamWf, currAIsForAllWfs, currWorkflowDesiredAIs, newAIs, modifiedBy,
- teamDefUtil);
+ ModifyActionableItems job = new ModifyActionableItems(results, teamWf, currAIsForAllWfs, currWorkflowDesiredAIs,
+ newAIs, modifiedBy, teamDefUtil);
job.performModification();
Assert.assertEquals(0, job.getAddAis().size());
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ActivityIdColumnTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ActivityIdColumnTest.java
index 84ec9e7518..d0dcf3451d 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ActivityIdColumnTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/column/ActivityIdColumnTest.java
@@ -14,7 +14,6 @@ import static org.mockito.Mockito.when;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
-import org.junit.Assert;
import org.eclipse.osee.ats.api.ev.IAtsEarnedValueService;
import org.eclipse.osee.ats.api.ev.IAtsEarnedValueServiceProvider;
import org.eclipse.osee.ats.api.ev.IAtsWorkPackage;
@@ -23,6 +22,7 @@ import org.eclipse.osee.ats.api.workflow.IAtsTask;
import org.eclipse.osee.ats.api.workflow.IAtsTeamWorkflow;
import org.eclipse.osee.ats.core.internal.column.ev.ActivityIdUtility;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
@@ -100,7 +100,9 @@ public class ActivityIdColumnTest {
Assert.assertEquals("ActId 1 - ActId 1 Name", col.getColumnText(teamWf1));
String workPackageStr = col.getColumnText(action);
- Assert.assertTrue(workPackageStr.equals("ActId 1 - ActId 1 Name, ActId 2 - ActId 2 Name") || workPackageStr.equals("ActId 2 - ActId 2 Name, ActId 1 - ActId 1 Name"));
+ Assert.assertTrue(
+ workPackageStr.equals("ActId 1 - ActId 1 Name, ActId 2 - ActId 2 Name") || workPackageStr.equals(
+ "ActId 2 - ActId 2 Name, ActId 1 - ActId 1 Name"));
Assert.assertEquals("", col.getColumnText(teamWf3));
}
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageGuidUtilityTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageGuidUtilityTest.java
index 8049286098..74a5e23da4 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageGuidUtilityTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageGuidUtilityTest.java
@@ -11,9 +11,9 @@
package org.eclipse.osee.ats.core.internal.column.ev;
import static org.mockito.Mockito.when;
-import org.junit.Assert;
import org.eclipse.osee.ats.core.column.IAtsColumnUtility;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageIdUtilityTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageIdUtilityTest.java
index e034be6d6e..a5238ec567 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageIdUtilityTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageIdUtilityTest.java
@@ -11,9 +11,9 @@
package org.eclipse.osee.ats.core.internal.column.ev;
import static org.mockito.Mockito.when;
-import org.junit.Assert;
import org.eclipse.osee.ats.core.column.IAtsColumnUtility;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageNameUtilityTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageNameUtilityTest.java
index c5ebe4636d..7fe2f4bd3a 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageNameUtilityTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageNameUtilityTest.java
@@ -11,9 +11,9 @@
package org.eclipse.osee.ats.core.internal.column.ev;
import static org.mockito.Mockito.when;
-import org.junit.Assert;
import org.eclipse.osee.ats.core.column.IAtsColumnUtility;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageProgramUtilityTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageProgramUtilityTest.java
index 32c630e970..fc731801c7 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageProgramUtilityTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageProgramUtilityTest.java
@@ -11,9 +11,9 @@
package org.eclipse.osee.ats.core.internal.column.ev;
import static org.mockito.Mockito.when;
-import org.junit.Assert;
import org.eclipse.osee.ats.core.column.IAtsColumnUtility;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageTypeUtilityTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageTypeUtilityTest.java
index 424dafb2d6..2b34ba1ef2 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageTypeUtilityTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/column/ev/WorkPackageTypeUtilityTest.java
@@ -11,10 +11,10 @@
package org.eclipse.osee.ats.core.internal.column.ev;
import static org.mockito.Mockito.when;
-import org.junit.Assert;
import org.eclipse.osee.ats.api.ev.AtsWorkPackageType;
import org.eclipse.osee.ats.core.column.IAtsColumnUtility;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
+import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/state/AtsWorkStateFactoryTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/state/AtsWorkStateFactoryTest.java
index b31b73c5e9..c53f04f537 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/state/AtsWorkStateFactoryTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/state/AtsWorkStateFactoryTest.java
@@ -17,7 +17,6 @@ import java.util.List;
import org.eclipse.osee.ats.api.user.IAtsUser;
import org.eclipse.osee.ats.api.user.IAtsUserService;
import org.eclipse.osee.ats.api.workflow.state.IAtsStateManager;
-import org.eclipse.osee.ats.core.internal.state.AtsWorkStateFactory;
import org.eclipse.osee.ats.core.model.impl.WorkStateImpl;
import org.eclipse.osee.framework.jdk.core.type.OseeArgumentException;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/state/StateManagerStoreTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/state/StateManagerStoreTest.java
index 9dcf8f1cf1..c0a757e3ff 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/state/StateManagerStoreTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/state/StateManagerStoreTest.java
@@ -152,9 +152,8 @@ public class StateManagerStoreTest {
when(workItem.getStateMgr()).thenReturn(stateMgr);
List<Object> objects = new ArrayList<>();
when(changes.getObjects()).thenReturn(objects);
- IExecuteListener listener =
- StateManagerStore.getPostPersistExecutionListener(asUser, workItem, stateMgr, stateMgr.getAssigneesAdded(),
- attrResolver, workStateFactory, changes);
+ IExecuteListener listener = StateManagerStore.getPostPersistExecutionListener(asUser, workItem, stateMgr,
+ stateMgr.getAssigneesAdded(), attrResolver, workStateFactory, changes);
when(attrResolver.getSoleAttributeValue(workItem, AtsAttributeTypes.CurrentState, "")).thenReturn(
"Analyze;<Joe><Kay>;;");
@@ -166,9 +165,8 @@ public class StateManagerStoreTest {
objects.add(workItem);
objects.add("now");
- listener =
- StateManagerStore.getPostPersistExecutionListener(asUser, workItem, stateMgr, stateMgr.getAssigneesAdded(),
- attrResolver, workStateFactory, changes);
+ listener = StateManagerStore.getPostPersistExecutionListener(asUser, workItem, stateMgr,
+ stateMgr.getAssigneesAdded(), attrResolver, workStateFactory, changes);
listener.changesStored(changes);
verify(notifications).addWorkItemNotificationEvent(any(AtsWorkItemNotificationEvent.class));
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/util/AtsIdProviderTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/util/AtsIdProviderTest.java
index dd0298c3a6..b1307a0667 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/util/AtsIdProviderTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/internal/util/AtsIdProviderTest.java
@@ -61,30 +61,33 @@ public class AtsIdProviderTest {
@Test
public void testGetAttrValue() {
- when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
- null);
+ when(
+ attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
+ null);
when(teamDef.getTeamDefinitionHoldingVersions()).thenReturn(null);
Assert.assertNull(atsIdProvider.getAttrValue(AtsAttributeTypes.AtsIdPrefix));
when(teamDef.getTeamDefinitionHoldingVersions()).thenReturn(parentTeamDef);
- when(attrResolver.getSoleAttributeValueAsString(parentTeamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
- "ATS");
+ when(attrResolver.getSoleAttributeValueAsString(parentTeamDef, AtsAttributeTypes.AtsIdPrefix,
+ (String) null)).thenReturn("ATS");
Assert.assertEquals("ATS", atsIdProvider.getAttrValue(AtsAttributeTypes.AtsIdPrefix));
- when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
- "TEST");
+ when(
+ attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
+ "TEST");
Assert.assertEquals("TEST", atsIdProvider.getAttrValue(AtsAttributeTypes.AtsIdPrefix));
}
@Test
public void testGetNextAtsId() {
- when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
- "ASDF");
- when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdSequenceName, (String) null)).thenReturn(
- "ASDF_SEQ");
+ when(
+ attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
+ "ASDF");
+ when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdSequenceName,
+ (String) null)).thenReturn("ASDF_SEQ");
when(sequenceProvider.getNext("ASDF_SEQ")).thenReturn(333L);
Assert.assertEquals("ASDF333", atsIdProvider.getNextAtsId());
@@ -94,10 +97,11 @@ public class AtsIdProviderTest {
public void testSetAtsId() {
when(attrResolver.getSoleAttributeValueAsString(newObject, AtsAttributeTypes.AtsId, (String) null)).thenReturn(
null);
- when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
- "ASDF");
- when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdSequenceName, (String) null)).thenReturn(
- "ASDF_SEQ");
+ when(
+ attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
+ "ASDF");
+ when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdSequenceName,
+ (String) null)).thenReturn("ASDF_SEQ");
when(sequenceProvider.getNext("ASDF_SEQ")).thenReturn(333L);
when(teamDef.getTeamDefinitionHoldingVersions()).thenReturn(parentTeamDef);
@@ -111,10 +115,11 @@ public class AtsIdProviderTest {
public void testNotSetAtsId() {
when(attrResolver.getSoleAttributeValueAsString(newObject, AtsAttributeTypes.AtsId, (String) null)).thenReturn(
"QQQQ444");
- when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
- "ASDF");
- when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdSequenceName, (String) null)).thenReturn(
- "ASDF_SEQ");
+ when(
+ attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdPrefix, (String) null)).thenReturn(
+ "ASDF");
+ when(attrResolver.getSoleAttributeValueAsString(teamDef, AtsAttributeTypes.AtsIdSequenceName,
+ (String) null)).thenReturn("ASDF_SEQ");
when(sequenceProvider.getNext("ASDF_SEQ")).thenReturn(333L);
when(teamDef.getTeamDefinitionHoldingVersions()).thenReturn(parentTeamDef);
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/model/impl/AtsCore_ModelImpl_JT_Suite.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/model/impl/AtsCore_ModelImpl_JT_Suite.java
index e79c261375..73fad294f4 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/model/impl/AtsCore_ModelImpl_JT_Suite.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/model/impl/AtsCore_ModelImpl_JT_Suite.java
@@ -15,11 +15,7 @@ import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
-@Suite.SuiteClasses({
- StateManagerTest.class,
- AtsActionGroupTest.class,
- AtsObjectTest.class,
- WorkStateImplTest.class})
+@Suite.SuiteClasses({StateManagerTest.class, AtsActionGroupTest.class, AtsObjectTest.class, WorkStateImplTest.class})
/**
* This test suite contains tests that can be run as stand-alone JUnit tests (JT)
*
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/users/CoreAtsUsersTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/users/CoreAtsUsersTest.java
index 39e4989905..c89ad53c29 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/users/CoreAtsUsersTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/users/CoreAtsUsersTest.java
@@ -153,8 +153,8 @@ public class CoreAtsUsersTest {
private class TestUser extends AbstractAtsUser {
- private String name = "Test User";
-
+ private final String name = "Test User";
+
public TestUser() {
super("999994");
}
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsObjectsTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsObjectsTest.java
index 76cb0b114d..23ba106d3b 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsObjectsTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/util/AtsObjectsTest.java
@@ -49,7 +49,8 @@ public class AtsObjectsTest {
objs.add("Just a String");
Assert.assertEquals(
String.format("%s; %s; %s; Just a String", AtsCoreUsers.SYSTEM_USER.getName(),
- AtsCoreUsers.ANONYMOUS_USER.getName(), AtsCoreUsers.UNASSIGNED_USER.getName()), AtsObjects.toString("; ", objs));
+ AtsCoreUsers.ANONYMOUS_USER.getName(), AtsCoreUsers.UNASSIGNED_USER.getName()),
+ AtsObjects.toString("; ", objs));
}
@Test
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXComboBooleanValidatorTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXComboBooleanValidatorTest.java
index 68193f3091..28efe24f48 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXComboBooleanValidatorTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXComboBooleanValidatorTest.java
@@ -51,24 +51,21 @@ public class AtsXComboBooleanValidatorTest {
toStateDef.setStateType(StateType.Working);
// Valid for anything not XIntegerDam
- WidgetResult result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ WidgetResult result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef,
+ toStateDef, atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.setXWidgetName("XComboBooleanDam");
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.getOptions().add(WidgetOption.REQUIRED_FOR_TRANSITION);
// Not valid if widgetDef required and no values set
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
Assert.assertEquals(WidgetStatus.Invalid_Incompleted, result.getStatus());
// Check for "true" value
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXComboValidatorTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXComboValidatorTest.java
index 4a3d1074d0..4cebdbba34 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXComboValidatorTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXComboValidatorTest.java
@@ -37,24 +37,21 @@ public class AtsXComboValidatorTest {
toStateDef.setStateType(StateType.Working);
// Valid for anything not XIntegerDam
- WidgetResult result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ WidgetResult result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef,
+ toStateDef, atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.setXWidgetName("XComboDam");
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.getOptions().add(WidgetOption.REQUIRED_FOR_TRANSITION);
// Not valid if widgetDef required and no values set
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
Assert.assertEquals(WidgetStatus.Invalid_Incompleted, result.getStatus());
}
}
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXDateValidatorTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXDateValidatorTest.java
index 5d79b959de..24240a1d30 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXDateValidatorTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXDateValidatorTest.java
@@ -41,24 +41,21 @@ public class AtsXDateValidatorTest {
toStateDef.setStateType(StateType.Working);
// Valid for anything not XIntegerDam
- WidgetResult result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ WidgetResult result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef,
+ toStateDef, atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.setXWidgetName("XDateDam");
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.getOptions().add(WidgetOption.REQUIRED_FOR_TRANSITION);
// Not valid if widgetDef required and no values set
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
Assert.assertEquals(WidgetStatus.Invalid_Incompleted, result.getStatus());
}
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXFloatValidatorTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXFloatValidatorTest.java
index 466b33838e..08210403a7 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXFloatValidatorTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXFloatValidatorTest.java
@@ -40,24 +40,21 @@ public class AtsXFloatValidatorTest {
toStateDef.setStateType(StateType.Working);
// Valid for anything not XIntegerDam
- WidgetResult result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ WidgetResult result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef,
+ toStateDef, atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.setXWidgetName("XFloatDam");
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.getOptions().add(WidgetOption.REQUIRED_FOR_TRANSITION);
// Not valid if widgetDef required and no values set
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
Assert.assertEquals(WidgetStatus.Invalid_Incompleted, result.getStatus());
}
@@ -78,9 +75,8 @@ public class AtsXFloatValidatorTest {
toStateDef.setStateType(StateType.Working);
// Valid is nothing entered
- WidgetResult result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ WidgetResult result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef,
+ toStateDef, atsServices);
ValidatorTestUtil.assertValidResult(result);
//Invalid_Range if > than what should be
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXIntegerValidatorTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXIntegerValidatorTest.java
index baaed31600..8ac2756276 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXIntegerValidatorTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXIntegerValidatorTest.java
@@ -40,24 +40,21 @@ public class AtsXIntegerValidatorTest {
toStateDef.setStateType(StateType.Working);
// Valid for anything not XIntegerDam
- WidgetResult result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ WidgetResult result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef,
+ toStateDef, atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.setXWidgetName("XIntegerDam");
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.getOptions().add(WidgetOption.REQUIRED_FOR_TRANSITION);
// Not valid if widgetDef required and no values set
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
Assert.assertEquals(WidgetStatus.Invalid_Incompleted, result.getStatus());
}
@@ -77,9 +74,8 @@ public class AtsXIntegerValidatorTest {
toStateDef.setStateType(StateType.Working);
// Valid is nothing entered
- WidgetResult result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ WidgetResult result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef,
+ toStateDef, atsServices);
ValidatorTestUtil.assertValidResult(result);
//Invalid_Range if > than what should be
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXListValidatorTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXListValidatorTest.java
index 6bba9936a8..ae1ccb1198 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXListValidatorTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXListValidatorTest.java
@@ -40,24 +40,21 @@ public class AtsXListValidatorTest {
toStateDef.setStateType(StateType.Working);
// Valid for anything not XIntegerDam
- WidgetResult result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ WidgetResult result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef,
+ toStateDef, atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.setXWidgetName("XListDam");
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.getOptions().add(WidgetOption.REQUIRED_FOR_TRANSITION);
// Not valid if widgetDef required and no values set
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
Assert.assertEquals(WidgetStatus.Invalid_Incompleted, result.getStatus());
}
@@ -78,9 +75,8 @@ public class AtsXListValidatorTest {
toStateDef.setStateType(StateType.Working);
// Valid is nothing entered
- WidgetResult result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ WidgetResult result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef,
+ toStateDef, atsServices);
ValidatorTestUtil.assertValidResult(result);
//Invalid_Range if select more than supposed to
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXTextValidatorTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXTextValidatorTest.java
index 958e036313..29d8f7315f 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXTextValidatorTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXTextValidatorTest.java
@@ -37,24 +37,21 @@ public class AtsXTextValidatorTest {
toStateDef.setStateType(StateType.Working);
// Valid for anything not XIntegerDam
- WidgetResult result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ WidgetResult result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef,
+ toStateDef, atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.setXWidgetName("XTextDam");
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
ValidatorTestUtil.assertValidResult(result);
widgetDef.getOptions().add(WidgetOption.REQUIRED_FOR_TRANSITION);
// Not valid if widgetDef required and no values set
- result =
- validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
- atsServices);
+ result = validator.validateTransition(ValidatorTestUtil.emptyValueProvider, widgetDef, fromStateDef, toStateDef,
+ atsServices);
Assert.assertEquals(WidgetStatus.Invalid_Incompleted, result.getStatus());
}
}
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXWidgetValidatorTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXWidgetValidatorTest.java
index a88d25bf03..6733e5cf1f 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXWidgetValidatorTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/AtsXWidgetValidatorTest.java
@@ -273,7 +273,8 @@ public class AtsXWidgetValidatorTest {
MockWidgetDefinition widgetDef = new MockWidgetDefinition("test");
- Assert.assertNull(validator.getConstraintOfType(widgetDef, IAtsWidgetDefinitionListMinMaxSelectedConstraint.class));
+ Assert.assertNull(
+ validator.getConstraintOfType(widgetDef, IAtsWidgetDefinitionListMinMaxSelectedConstraint.class));
Assert.assertEquals(null, validator.getListMinSelected(widgetDef));
Assert.assertEquals(null, validator.getListMaxSelected(widgetDef));
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/MockStateDefinition.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/MockStateDefinition.java
index e59d399d84..0194c7abc2 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/MockStateDefinition.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/validator/MockStateDefinition.java
@@ -114,7 +114,7 @@ public class MockStateDefinition implements IAtsStateDefinition {
public int hashCode() {
final int prime = 31;
int result = 1;
- result = prime * result + ((getFullName() == null) ? 0 : getFullName().hashCode());
+ result = prime * result + (getFullName() == null ? 0 : getFullName().hashCode());
return result;
}
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/MockWorkDefinition.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/MockWorkDefinition.java
index 6dad1ee135..a5250ac284 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/MockWorkDefinition.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/MockWorkDefinition.java
@@ -14,7 +14,6 @@ import java.util.ArrayList;
import java.util.List;
import org.eclipse.osee.ats.api.workdef.IAtsStateDefinition;
import org.eclipse.osee.ats.api.workdef.IAtsWorkDefinition;
-import org.eclipse.osee.framework.jdk.core.type.Identity;
/**
* @author Donald G. Dunne
@@ -49,7 +48,7 @@ public class MockWorkDefinition implements IAtsWorkDefinition {
public int hashCode() {
final int prime = 31;
int result = 1;
- result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+ result = prime * result + (getId() == null ? 0 : getId().hashCode());
return result;
}
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/ReviewBlockTypeTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/ReviewBlockTypeTest.java
index db741ead8b..82fe84be5f 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/ReviewBlockTypeTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/ReviewBlockTypeTest.java
@@ -10,8 +10,8 @@
*******************************************************************************/
package org.eclipse.osee.ats.core.workdef;
-import org.junit.Assert;
import org.eclipse.osee.ats.api.workdef.ReviewBlockType;
+import org.junit.Assert;
import org.junit.Test;
/**
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/RuleDefinitionOptionTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/RuleDefinitionOptionTest.java
index cdd418b975..270737f535 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/RuleDefinitionOptionTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/RuleDefinitionOptionTest.java
@@ -10,8 +10,8 @@
*******************************************************************************/
package org.eclipse.osee.ats.core.workdef;
-import org.junit.Assert;
import org.eclipse.osee.ats.api.workdef.RuleDefinitionOption;
+import org.junit.Assert;
import org.junit.Test;
/**
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/StateColorTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/StateColorTest.java
index adf397049e..332a45b77f 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/StateColorTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/StateColorTest.java
@@ -10,8 +10,8 @@
*******************************************************************************/
package org.eclipse.osee.ats.core.workdef;
-import org.junit.Assert;
import org.eclipse.osee.ats.api.workdef.StateColor;
+import org.junit.Assert;
import org.junit.Test;
/**
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/StateEventTypeTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/StateEventTypeTest.java
index 1b56604130..5096ca3d22 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/StateEventTypeTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workdef/StateEventTypeTest.java
@@ -10,8 +10,8 @@
*******************************************************************************/
package org.eclipse.osee.ats.core.workdef;
-import org.junit.Assert;
import org.eclipse.osee.ats.api.workdef.StateEventType;
+import org.junit.Assert;
import org.junit.Test;
/**
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/StateTypeTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/StateTypeTest.java
index 140dbab1ec..4cb9f3d3bd 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/StateTypeTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/StateTypeTest.java
@@ -10,8 +10,8 @@
*******************************************************************************/
package org.eclipse.osee.ats.core.workflow;
-import org.junit.Assert;
import org.eclipse.osee.ats.api.workdef.StateType;
+import org.junit.Assert;
import org.junit.Test;
/**
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/state/StateManagerUtilityTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/state/StateManagerUtilityTest.java
index 7dc4a34bbb..01d00acf8c 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/state/StateManagerUtilityTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/state/StateManagerUtilityTest.java
@@ -156,8 +156,8 @@ public class StateManagerUtilityTest {
when(stateMgr.getState("Implement")).thenReturn(workState);
result = StateManagerUtility.isDirtyResult(workItem, stateMgr, attrResolver, workStateFactory);
- Assert.assertTrue(result.getText().contains(
- "StateManager: State [Implement] modified was [Implement;;;] is [Implement;;1.3;]"));
+ Assert.assertTrue(
+ result.getText().contains("StateManager: State [Implement] modified was [Implement;;;] is [Implement;;1.3;]"));
}
diff --git a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/transition/TransitionHelperTest.java b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/transition/TransitionHelperTest.java
index 0b67d9b9fd..47152d3063 100644
--- a/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/transition/TransitionHelperTest.java
+++ b/plugins/org.eclipse.osee.ats.core.test/src/org/eclipse/osee/ats/core/workflow/transition/TransitionHelperTest.java
@@ -64,18 +64,16 @@ public class TransitionHelperTest {
when(services.getUserService()).thenReturn(userService);
when(services.getWorkItemService()).thenReturn(workItemService);
- helper =
- new TransitionHelper("test", Arrays.asList(workItem, workItem2), "Completed", Arrays.asList(Joe, Kay),
- "cancel reason", changes, services, TransitionOption.None);
+ helper = new TransitionHelper("test", Arrays.asList(workItem, workItem2), "Completed", Arrays.asList(Joe, Kay),
+ "cancel reason", changes, services, TransitionOption.None);
}
@Test
public void testIsPrivilegedEditEnabled() {
Assert.assertFalse(helper.isPrivilegedEditEnabled());
- TransitionHelper helper =
- new TransitionHelper("test", Arrays.asList(workItem, workItem2), "Completed", Arrays.asList(Joe, Kay),
- "cancel reason", changes, services, TransitionOption.PrivilegedEditEnabled);
+ TransitionHelper helper = new TransitionHelper("test", Arrays.asList(workItem, workItem2), "Completed",
+ Arrays.asList(Joe, Kay), "cancel reason", changes, services, TransitionOption.PrivilegedEditEnabled);
Assert.assertTrue(helper.isPrivilegedEditEnabled());
}
@@ -84,9 +82,8 @@ public class TransitionHelperTest {
public void testIsOverrideTransitionValidityCheck() {
Assert.assertFalse(helper.isOverrideTransitionValidityCheck());
- TransitionHelper helper =
- new TransitionHelper("test", Arrays.asList(workItem, workItem2), "Completed", Arrays.asList(Joe, Kay),
- "cancel reason", changes, services, TransitionOption.OverrideTransitionValidityCheck);
+ TransitionHelper helper = new TransitionHelper("test", Arrays.asList(workItem, workItem2), "Completed",
+ Arrays.asList(Joe, Kay), "cancel reason", changes, services, TransitionOption.OverrideTransitionValidityCheck);
Assert.assertTrue(helper.isOverrideTransitionValidityCheck());
}
@@ -95,9 +92,8 @@ public class TransitionHelperTest {
public void testIsOverrideAssigneeCheck() {
Assert.assertFalse(helper.isOverrideAssigneeCheck());
- TransitionHelper helper =
- new TransitionHelper("test", Arrays.asList(workItem, workItem2), "Completed", Arrays.asList(Joe, Kay),
- "cancel reason", changes, services, TransitionOption.OverrideAssigneeCheck);
+ TransitionHelper helper = new TransitionHelper("test", Arrays.asList(workItem, workItem2), "Completed",
+ Arrays.asList(Joe, Kay), "cancel reason", changes, services, TransitionOption.OverrideAssigneeCheck);
Assert.assertTrue(helper.isOverrideAssigneeCheck());
}
@@ -124,9 +120,8 @@ public class TransitionHelperTest {
Assert.assertEquals("cancel reason", reason.getText());
Assert.assertTrue(reason.isTrue());
- TransitionHelper helper2 =
- new TransitionHelper("test", Arrays.asList(workItem, workItem2), "Completed", Arrays.asList(Joe, Kay), null,
- changes, services, TransitionOption.OverrideAssigneeCheck);
+ TransitionHelper helper2 = new TransitionHelper("test", Arrays.asList(workItem, workItem2), "Completed",
+ Arrays.asList(Joe, Kay), null, changes, services, TransitionOption.OverrideAssigneeCheck);
reason = helper2.getCompleteOrCancellationReason();
Assert.assertEquals("", reason.getText());

Back to the top