@Test public void buildShouldWorkWhenDisabled() { String keystore = null; String secret = null; Optional<String> jwtPublicKeyPem = Optional.empty(); JMAPDraftConfiguration expectedJMAPDraftConfiguration = new JMAPDraftConfiguration(DISABLED, keystore, secret, jwtPublicKeyPem); JMAPDraftConfiguration jmapDraftConfiguration = JMAPDraftConfiguration.builder() .disable() .build(); assertThat(jmapDraftConfiguration).isEqualToComparingFieldByField(expectedJMAPDraftConfiguration); }
public static Builder builder() { return new Builder(); }
JMAPDraftConfiguration { public static Builder builder() { return new Builder(); } }
JMAPDraftConfiguration { public static Builder builder() { return new Builder(); } @VisibleForTesting  JMAPDraftConfiguration(boolean enabled, String keystore, String secret, Optional<String> jwtPublicKeyPem); }
JMAPDraftConfiguration { public static Builder builder() { return new Builder(); } @VisibleForTesting  JMAPDraftConfiguration(boolean enabled, String keystore, String secret, Optional<String> jwtPublicKeyPem); static Builder builder(); boolean isEnabled(); String getKeystore(); String getSecret(); Optional<String> getJwtPublicKeyPem(); }
JMAPDraftConfiguration { public static Builder builder() { return new Builder(); } @VisibleForTesting  JMAPDraftConfiguration(boolean enabled, String keystore, String secret, Optional<String> jwtPublicKeyPem); static Builder builder(); boolean isEnabled(); String getKeystore(); String getSecret(); Optional<String> getJwtPublicKeyPem();  }