private com.silanis.esl.sdk.SupportConfiguration createTypicalSDKSupportConfiguration() { SupportConfiguration sdkSupportConfiguration = new SupportConfiguration(); sdkSupportConfiguration.setEmail( UUID.randomUUID().toString().replace("-", "") + "@e-signlive.com"); sdkSupportConfiguration.setPhone("sdkPhone"); return sdkSupportConfiguration; }
@Override @Test public void convertAPIToSDK() { apiSupportConfiguration = createTypicalAPISupportConfiguration(); sdkSupportConfiguration = new SupportConfigurationConverter(apiSupportConfiguration).toSDKSupportConfiguration(); assertThat( "Converter returned a null sdk object for a non null api object", sdkSupportConfiguration, is(notNullValue())); assertThat( "Email was not correctly set", sdkSupportConfiguration.getEmail(), is(apiSupportConfiguration.getEmail())); assertThat( "Phone was not correctly set", sdkSupportConfiguration.getPhone(), is(apiSupportConfiguration.getPhone())); }