@Test public void buildShouldThrowWhenKeystoreIsEmpty() { assertThatThrownBy(() -> JMAPDraftConfiguration.builder() .enable() .keystore("") .build()) .isInstanceOf(IllegalStateException.class) .hasMessage("'keystore' is mandatory"); }
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();  }