Cid { public static CidParser parser() { return new CidParser(); } private  Cid(String value); static CidParser parser(); static Cid from(String value); String getValue(); @Override final boolean equals(Object obj); @Override final int hashCode(); static final StrictCidValidator DEFAULT_VALIDATOR; }
@Test void fromRelaxedNoUnwrapShouldReturnAbsentWhenNull() { assertThat(Cid.parser() .relaxed() .parse(null)) .isEmpty(); }
@Test void fromRelaxedNoUnwrapShouldReturnAbsentWhenEmpty() { assertThat(Cid.parser() .relaxed() .parse("")) .isEmpty(); }
@Test void fromRelaxedNoUnwrapShouldReturnAbsentWhenBlank() { assertThat(Cid.parser() .relaxed() .parse(" ")) .isEmpty(); }
@Test void fromRelaxedUnwrapShouldReturnAbsentWhenNull() { assertThat(Cid.parser() .relaxed() .unwrap() .parse(null)) .isEmpty(); }
@Test void fromRelaxedUnwrapShouldReturnAbsentWhenEmpty() { assertThat(Cid.parser() .relaxed() .unwrap() .parse("")) .isEmpty(); }
@Test void fromRelaxedUnwrapShouldReturnAbsentWhenBlank() { assertThat(Cid.parser() .relaxed() .unwrap() .parse(" ")) .isEmpty(); }
@Test void fromRelaxedUnwrapShouldReturnAbsentWhenEmptyAfterRemoveTags() { assertThat(Cid.parser() .relaxed() .unwrap() .parse("<>")) .isEmpty(); }
@Test void fromRelaxedUnwrapShouldReturnAbsentWhenBlankAfterRemoveTags() { assertThat(Cid.parser() .relaxed() .unwrap() .parse("< >")) .isEmpty(); }
@Test void fromStrictNoUnwrapShouldThrowWhenNull() { assertThatThrownBy(() -> Cid.parser() .strict() .parse(null)) .isInstanceOf(IllegalArgumentException.class); }
@Test void fromStrictNoUnwrapShouldThrowWhenEmpty() { assertThatThrownBy(() -> Cid.parser() .strict() .parse("")) .isInstanceOf(IllegalArgumentException.class); }
@Test void fromStrinctNoUnwrapShouldThrowWhenBlank() { assertThatThrownBy(() -> Cid.parser() .strict() .parse(" ")) .isInstanceOf(IllegalArgumentException.class); }