AuthenticatorTransport implements Serializable { public static AuthenticatorTransport create(String value) { if (value == null) { return null; } return new AuthenticatorTransport(value); } private  AuthenticatorTransport(String value); static AuthenticatorTransport create(String value); @JsonValue String getValue(); @Override boolean equals(Object o); @Override int hashCode(); static final AuthenticatorTransport USB; static final AuthenticatorTransport NFC; static final AuthenticatorTransport BLE; static final AuthenticatorTransport INTERNAL; }
@Test void create_test() { assertAll( () -> assertThat(AuthenticatorTransport.create(null)).isNull(), () -> assertThat(AuthenticatorTransport.create("usb")).isEqualTo(AuthenticatorTransport.USB), () -> assertThat(AuthenticatorTransport.create("nfc")).isEqualTo(AuthenticatorTransport.NFC), () -> assertThat(AuthenticatorTransport.create("ble")).isEqualTo(AuthenticatorTransport.BLE), () -> assertThat(AuthenticatorTransport.create("internal")).isEqualTo(AuthenticatorTransport.INTERNAL) ); }
@Test void create_invalid_value_test() { assertDoesNotThrow( () -> AuthenticatorTransport.create("unknown") ); }