@@ -136,7 +136,7 @@ public void given_multibranch_when_changeRequestsWanted_then_onlyUncategorizedAn
136
136
assertThat (prj .getItems (),
137
137
containsInAnyOrder (
138
138
hasProperty ("displayName" , is ("master" )),
139
- hasProperty ("displayName" , is ("CR-" + crNum ))
139
+ hasProperty ("displayName" , is ("Change request #1 ( CR-1)" ))
140
140
)
141
141
);
142
142
assertThat (prj .getViews (),
@@ -204,7 +204,7 @@ public void given_multibranch_when_noBranchesWanted_then_uncategorizedViewPresen
204
204
assertThat (prj .getItems (),
205
205
containsInAnyOrder (
206
206
hasProperty ("displayName" , is ("master-1.0" )),
207
- hasProperty ("displayName" , is ("CR-" + crNum ))
207
+ hasProperty ("displayName" , is ("Change request #1 ( CR-1)" ))
208
208
)
209
209
);
210
210
assertThat (prj .getViews (),
@@ -222,7 +222,7 @@ public void given_multibranch_when_noBranchesWanted_then_uncategorizedViewPresen
222
222
allOf (
223
223
instanceOf (MultiBranchProjectViewHolder .ViewImpl .class ),
224
224
hasProperty ("viewName" , is (ChangeRequestSCMHeadCategory .DEFAULT .getName ())),
225
- hasProperty ("items" , contains (hasProperty ("displayName" , is ("CR-" + crNum ))))
225
+ hasProperty ("items" , contains (hasProperty ("displayName" , is ("Change request #1 ( CR-1)" ))))
226
226
)
227
227
));
228
228
}
@@ -253,8 +253,8 @@ public void given_multibranch_when_wantsEverything_then_hasEverything()
253
253
hasProperty ("displayName" , is ("feature" )),
254
254
hasProperty ("displayName" , is ("master-1.0" )),
255
255
hasProperty ("displayName" , is ("master-1.1" )),
256
- hasProperty ("displayName" , is ("CR-" + crNum1 )),
257
- hasProperty ("displayName" , is ("CR-" + crNum2 ))
256
+ hasProperty ("displayName" , is ("Change request #1 ( CR-1)" )),
257
+ hasProperty ("displayName" , is ("Change request #2 ( CR-2)" ))
258
258
)
259
259
);
260
260
assertThat (prj .getViews (),
@@ -279,8 +279,8 @@ public void given_multibranch_when_wantsEverything_then_hasEverything()
279
279
instanceOf (MultiBranchProjectViewHolder .ViewImpl .class ),
280
280
hasProperty ("viewName" , is (ChangeRequestSCMHeadCategory .DEFAULT .getName ())),
281
281
hasProperty ("items" , containsInAnyOrder (
282
- hasProperty ("displayName" , is ("CR-" + crNum2 )),
283
- hasProperty ("displayName" , is ("CR-" + crNum1 ))
282
+ hasProperty ("displayName" , is ("Change request #1 ( CR-1)" )),
283
+ hasProperty ("displayName" , is ("Change request #2 ( CR-2)" ))
284
284
))
285
285
)
286
286
));
0 commit comments