@Test void testBadInput() { assertNull(Slug.valueOf("An invalid % value"), "Check invalid input"); }
public static Slug valueOf(final String value) { if (value != null) { final String decoded = decodeSlug(value); if (decoded != null) { return new Slug(decoded); } } return null; }
Slug { public static Slug valueOf(final String value) { if (value != null) { final String decoded = decodeSlug(value); if (decoded != null) { return new Slug(decoded); } } return null; } }
Slug { public static Slug valueOf(final String value) { if (value != null) { final String decoded = decodeSlug(value); if (decoded != null) { return new Slug(decoded); } } return null; } Slug(final String value); }
Slug { public static Slug valueOf(final String value) { if (value != null) { final String decoded = decodeSlug(value); if (decoded != null) { return new Slug(decoded); } } return null; } Slug(final String value); String getValue(); static Slug valueOf(final String value); }
Slug { public static Slug valueOf(final String value) { if (value != null) { final String decoded = decodeSlug(value); if (decoded != null) { return new Slug(decoded); } } return null; } Slug(final String value); String getValue(); static Slug valueOf(final String value);  }