Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/event/BranchEventTest.java')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/event/BranchEventTest.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/event/BranchEventTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/event/BranchEventTest.java
index 650d4f9a58f..58cac0177d5 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/event/BranchEventTest.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/event/BranchEventTest.java
@@ -15,7 +15,8 @@ import java.util.Arrays;
import java.util.List;
import java.util.logging.Level;
import junit.framework.Assert;
-import org.eclipse.osee.framework.core.data.OseeBranch;
+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.BranchState;
import org.eclipse.osee.framework.core.enums.BranchType;
@@ -305,8 +306,9 @@ public class BranchEventTest {
private Branch testEvents__topLevelAdded() throws Exception {
clearEventCollections();
final String guid = GUID.create();
- Branch branch =
- BranchManager.createTopLevelBranch(new OseeBranch(BRANCH_NAME_PREFIX + " - top level branch", guid));
+ final String branchName = String.format("%s - top level branch", BRANCH_NAME_PREFIX);
+ IOseeBranch branchToken = TokenFactory.createBranch(guid, branchName);
+ Branch branch = BranchManager.createTopLevelBranch(branchToken);
Assert.assertNotNull(branch);

Back to the top