@Test public void shouldReturnCommaSeparateRightNames() { String result = RightName.commaSeparateRightNames("name1", "name2"); assertThat(result, is("{name1, name2}")); }
public static String commaSeparateRightNames(String... rightNames) { return Arrays.toString(rightNames).replace("[", "{").replace("]", "}"); }
RightName { public static String commaSeparateRightNames(String... rightNames) { return Arrays.toString(rightNames).replace("[", "{").replace("]", "}"); } }
RightName { public static String commaSeparateRightNames(String... rightNames) { return Arrays.toString(rightNames).replace("[", "{").replace("]", "}"); }  }
RightName { public static String commaSeparateRightNames(String... rightNames) { return Arrays.toString(rightNames).replace("[", "{").replace("]", "}"); }  static String commaSeparateRightNames(String... rightNames); }
RightName { public static String commaSeparateRightNames(String... rightNames) { return Arrays.toString(rightNames).replace("[", "{").replace("]", "}"); }  static String commaSeparateRightNames(String... rightNames); static final String CONFIGURE_RNR; static final String MANAGE_FACILITY; static final String MANAGE_ROLE; static final String MANAGE_SCHEDULE; static final String MANAGE_USER; static final String MANAGE_SUPERVISORY_NODE; static final String UPLOADS; static final String MANAGE_REPORT; static final String VIEW_REQUISITION; static final String CREATE_REQUISITION; static final String AUTHORIZE_REQUISITION; static final String APPROVE_REQUISITION; static final String CONVERT_TO_ORDER; static final String VIEW_ORDER; static final String MANAGE_PROGRAM_PRODUCT; static final String MANAGE_DISTRIBUTION; static final String SYSTEM_SETTINGS; static final String MANAGE_REGIMEN_TEMPLATE; static final String FACILITY_FILL_SHIPMENT; static final String MANAGE_POD; static final String MANAGE_GEOGRAPHIC_ZONE; static final String MANAGE_REQUISITION_GROUP; static final String MANAGE_SUPPLY_LINE; static final String MANAGE_FACILITY_APPROVED_PRODUCT; static final String MANAGE_PRODUCT; static final String MANAGE_EQUIPMENT_INVENTORY; static final String MANAGE_EQUIPMENT_SETTINGS; static final String CREATE_IVD; static final String VIEW_IVD; static final String APPROVE_IVD; static final String MANAGE_DEMOGRAPHIC_ESTIMATES; static final String MANAGE_DEMOGRAPHIC_PARAMETERS; static final String VIEW_VACCINE_ORDER_REQUISITION; }