@Test void buildShouldThrowWhenEnableIsMissing() { assertThatThrownBy(() -> JMAPConfiguration.builder().build()) .isInstanceOf(IllegalStateException.class) .hasMessage("You should specify if JMAP server should be started"); }
public static Builder builder() { return new Builder(); }
JMAPConfiguration { public static Builder builder() { return new Builder(); } }
JMAPConfiguration { public static Builder builder() { return new Builder(); } @VisibleForTesting  JMAPConfiguration(boolean enabled, Optional<Port> port); }
JMAPConfiguration { public static Builder builder() { return new Builder(); } @VisibleForTesting  JMAPConfiguration(boolean enabled, Optional<Port> port); static Builder builder(); boolean isEnabled(); Optional<Port> getPort(); }
JMAPConfiguration { public static Builder builder() { return new Builder(); } @VisibleForTesting  JMAPConfiguration(boolean enabled, Optional<Port> port); static Builder builder(); boolean isEnabled(); Optional<Port> getPort();  }