diff options
author | Ryan D. Brooks | 2016-10-25 22:45:15 +0000 |
---|---|---|
committer | donald.g.dunne | 2016-10-25 22:45:15 +0000 |
commit | a50384bec11f3f52243bcb09d934109cae8bf9d6 (patch) | |
tree | 7fbd1d9c0d7e60c323b7b02ceb8f13179539245b /plugins/org.eclipse.osee.ats.client.integration.tests | |
parent | 18fcb2cf1ceb0fa144c38182e432e25482af4bf6 (diff) | |
download | org.eclipse.osee-a50384bec11f3f52243bcb09d934109cae8bf9d6.tar.gz org.eclipse.osee-a50384bec11f3f52243bcb09d934109cae8bf9d6.tar.xz org.eclipse.osee-a50384bec11f3f52243bcb09d934109cae8bf9d6.zip |
refactor: Remove TokenFactory.createBranch
Change-Id: I6b1541262023df7b8686b2b7724b8a06b2ec007c
Diffstat (limited to 'plugins/org.eclipse.osee.ats.client.integration.tests')
-rw-r--r-- | plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/AtsBranchConfigurationTest.java | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/AtsBranchConfigurationTest.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/AtsBranchConfigurationTest.java index d7e109e5a3d..f59346b4692 100644 --- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/AtsBranchConfigurationTest.java +++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/config/AtsBranchConfigurationTest.java @@ -39,7 +39,6 @@ import org.eclipse.osee.ats.util.AtsBranchManager; import org.eclipse.osee.ats.util.AtsUtil; import org.eclipse.osee.framework.core.data.BranchId; import org.eclipse.osee.framework.core.data.IOseeBranch; -import org.eclipse.osee.framework.core.data.TokenFactory; import org.eclipse.osee.framework.core.enums.BranchArchivedState; import org.eclipse.osee.framework.core.enums.BranchType; import org.eclipse.osee.framework.core.enums.CoreArtifactTypes; @@ -72,8 +71,8 @@ import org.junit.Before; */ public class AtsBranchConfigurationTest { - public static final IOseeBranch BRANCH_VIA_TEAM_DEFINITION = TokenFactory.createBranch("BranchViaTeamDef"); - public static final IOseeBranch BRANCH_VIA_VERSIONS = TokenFactory.createBranch("BranchViaVersions"); + public static final IOseeBranch BRANCH_VIA_TEAM_DEFINITION = IOseeBranch.create("BranchViaTeamDef"); + public static final IOseeBranch BRANCH_VIA_VERSIONS = IOseeBranch.create("BranchViaVersions"); private final boolean DEBUG = false; private static Collection<String> appendToName(IOseeBranch branch, String... postFixes) { @@ -355,8 +354,7 @@ public class AtsBranchConfigurationTest { for (Artifact teamDefArt : ArtifactQuery.getArtifactListFromTypeAndName(AtsArtifactTypes.TeamDefinition, branch.getName(), AtsUtilCore.getAtsBranch())) { teamDefArt.deleteAndPersist(transaction, false); - IAtsTeamDefinition soleByUuid = - AtsClientService.get().getCache().getAtsObject(teamDefArt.getId()); + IAtsTeamDefinition soleByUuid = AtsClientService.get().getCache().getAtsObject(teamDefArt.getId()); if (soleByUuid != null) { AtsClientService.get().getCache().deCacheAtsObject(soleByUuid); } @@ -369,8 +367,7 @@ public class AtsBranchConfigurationTest { branch.getName(), AtsUtilCore.getAtsBranch())) { for (Artifact childArt : aiaArt.getChildren()) { childArt.deleteAndPersist(transaction, false); - IAtsActionableItem soleByUuid = - AtsClientService.get().getCache().getAtsObject(childArt.getId()); + IAtsActionableItem soleByUuid = AtsClientService.get().getCache().getAtsObject(childArt.getId()); if (soleByUuid != null) { AtsClientService.get().getCache().deCacheAtsObject(soleByUuid); } @@ -378,8 +375,7 @@ public class AtsBranchConfigurationTest { aiaArt.deleteAndPersist(transaction, false); - IAtsActionableItem ai = - AtsClientService.get().getCache().getAtsObject(aiaArt.getId()); + IAtsActionableItem ai = AtsClientService.get().getCache().getAtsObject(aiaArt.getId()); if (ai != null) { AtsClientService.get().getCache().deCacheAtsObject(ai); } |