@Test public void invariants() { assertThatThrownBy(() -> Registration.create(null, null).build()).isInstanceOf(IllegalArgumentException.class) .hasMessage("'name' must not be empty."); assertThatThrownBy(() -> Registration.create("test", null).build()).isInstanceOf(IllegalArgumentException.class) .hasMessage( "'healthUrl' must not be empty."); assertThatThrownBy(() -> Registration.create("test", "invalid").build()).isInstanceOf( IllegalArgumentException.class).hasMessage("'healthUrl' is not valid: invalid"); assertThatThrownBy( () -> Registration.create("test", "http: IllegalArgumentException.class).hasMessage("'managementUrl' is not valid: invalid"); assertThatThrownBy( () -> Registration.create("test", "http: IllegalArgumentException.class).hasMessage("'serviceUrl' is not valid: invalid"); }
public static Registration.Builder create(String name, String healthUrl) { return builder().name(name).healthUrl(healthUrl); }
Registration implements Serializable { public static Registration.Builder create(String name, String healthUrl) { return builder().name(name).healthUrl(healthUrl); } }
Registration implements Serializable { public static Registration.Builder create(String name, String healthUrl) { return builder().name(name).healthUrl(healthUrl); } @lombok.Builder(builderClassName = "Builder", toBuilder = true) private  Registration(String name,
                         @Nullable String managementUrl,
                         String healthUrl,
                         @Nullable String serviceUrl,
                         String source,
                         @lombok.Singular("metadata") Map<String, String> metadata); }
Registration implements Serializable { public static Registration.Builder create(String name, String healthUrl) { return builder().name(name).healthUrl(healthUrl); } @lombok.Builder(builderClassName = "Builder", toBuilder = true) private  Registration(String name,
                         @Nullable String managementUrl,
                         String healthUrl,
                         @Nullable String serviceUrl,
                         String source,
                         @lombok.Singular("metadata") Map<String, String> metadata); static Registration.Builder create(String name, String healthUrl); static Registration.Builder copyOf(Registration registration); Map<String, String> getMetadata(); }
Registration implements Serializable { public static Registration.Builder create(String name, String healthUrl) { return builder().name(name).healthUrl(healthUrl); } @lombok.Builder(builderClassName = "Builder", toBuilder = true) private  Registration(String name,
                         @Nullable String managementUrl,
                         String healthUrl,
                         @Nullable String serviceUrl,
                         String source,
                         @lombok.Singular("metadata") Map<String, String> metadata); static Registration.Builder create(String name, String healthUrl); static Registration.Builder copyOf(Registration registration); Map<String, String> getMetadata();  }