@Test void buildShouldWorkWhenFixedPort() { JMAPConfiguration expectedJMAPConfiguration = new JMAPConfiguration(ENABLED, Optional.of(Port.of(80))); JMAPConfiguration jmapConfiguration = JMAPConfiguration.builder() .enable() .port(Port.of(80)) .build(); assertThat(jmapConfiguration).isEqualToComparingFieldByField(expectedJMAPConfiguration); }
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();  }