|
|
@ -41,8 +41,8 @@ public class EndpointIdTests {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@Test
|
|
|
|
public void ofWhenContainsInvalidCharThrowsException() {
|
|
|
|
public void ofWhenContainsSlashThrowsException() {
|
|
|
|
assertThatIllegalArgumentException().isThrownBy(() -> EndpointId.of("foo!bar"))
|
|
|
|
assertThatIllegalArgumentException().isThrownBy(() -> EndpointId.of("foo/bar"))
|
|
|
|
.withMessage("Value must only contain valid chars");
|
|
|
|
.withMessage("Value must only contain valid chars");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|