예제 #1
0
파일: TestUtil.java 프로젝트: eclipse/osee
 public static Branch createBranch(int index, long branchUuid) {
   BranchState branchState = BranchState.values()[Math.abs(index % BranchState.values().length)];
   BranchType branchType = BranchType.values()[Math.abs(index % BranchType.values().length)];
   boolean isArchived = index % 2 == 0 ? true : false;
   return new Branch(branchUuid, "branch_" + index, branchType, branchState, isArchived, false);
 }