Example #1
0
 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);
 }