private com.silanis.esl.api.model.SupportConfiguration createTypicalAPISupportConfiguration() { com.silanis.esl.api.model.SupportConfiguration apiSupportConfiguration = new com.silanis.esl.api.model.SupportConfiguration(); apiSupportConfiguration.setEmail( UUID.randomUUID().toString().replace("-", "") + "@e-signlive.com"); apiSupportConfiguration.setPhone("apiPhone"); return apiSupportConfiguration; }
@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())); }