@Test public void testDefaultEncryptionMode() { assertThat(builder.getEncryptionMethod()).isEqualTo(HawkBuilder.EncryptionMethod.MEDIUM); }
@Test public void testNoEncrpytionMode() { builder.setEncryptionMethod(HawkBuilder.EncryptionMethod.NO_ENCRYPTION).build(); assertThat(builder.getEncryptionMethod()).isEqualTo(HawkBuilder.EncryptionMethod.NO_ENCRYPTION); }
@Test public void testHighestEncryptionMethodWithPasword() { builder.setEncryptionMethod(HawkBuilder.EncryptionMethod.HIGHEST).setPassword("test"); assertThat(builder.getEncryptionMethod()).isEqualTo(HawkBuilder.EncryptionMethod.HIGHEST); }