@Test void build() { assertEquals("lorem-ipsum", Id.build("lorem-ipsum")); assertEquals("lorem-ipsum", Id.build("Lorem Ipsum")); assertEquals("lorem-ipsum", Id.build("Lorem", "Ipsum")); assertEquals("lorem-ipsum", Id.build(" Lorem ", " Ipsum ")); assertEquals("l0rem-ip5um", Id.build("l0rem ip5um")); assertEquals("l0rem-ip5um", Id.build("l0rem", "ip5um")); assertEquals("l0rem-ip5um", Id.build(" l0rem ", " ip5um ")); assertEquals("lorem---ipsum", Id.build("lorem §±!@#$%^&*()=_+[]{};'\\:\"|,./<>?`~ ipsum")); assertEquals("lorem---ipsum", Id.build("lorem", "§±!@#$%^&*()=_+[]{};'\\:\"|,./<>?`~", "ipsum")); }
public static String build(String id, String... additionalIds) { return build(id, '-', additionalIds); }
Id { public static String build(String id, String... additionalIds) { return build(id, '-', additionalIds); } }
Id { public static String build(String id, String... additionalIds) { return build(id, '-', additionalIds); } private  Id(); }
Id { public static String build(String id, String... additionalIds) { return build(id, '-', additionalIds); } private  Id(); static String unique(); static String unique(String id, String... additionalIds); static String build(String id, String... additionalIds); }
Id { public static String build(String id, String... additionalIds) { return build(id, '-', additionalIds); } private  Id(); static String unique(); static String unique(String id, String... additionalIds); static String build(String id, String... additionalIds);  }