예제 #1
0
 /** @return registration status text. */
 public String getStatusText() {
   if (registration.getStatus() == RegistrationStatus.NOT_STARTED) {
     return registration.getStatus().getDisplay();
   }
   String[] args = {registration.getStatus().getDisplay(), getStatusDateDisplay()};
   return action.getText("registration.status.with.date", args);
 }
 private void setUpMockRegistrationServiceToReturnRegistration(
     AbstractProtocolRegistration registration) {
   when(mockRegistrationService.getByStatusForUser(registration.getStatus(), sponsor, groupNames))
       .thenReturn(Lists.newArrayList(registration));
 }