Merge branch 'tests' into 'dev'

Tests

See merge request sa4-2020/the-sanmarinoes/backend!204
This commit is contained in:
Claudio Maggioni 2020-05-27 11:52:58 +02:00
commit 3bb8f1b394

View file

@ -0,0 +1,22 @@
package ch.usi.inf.sa4.sanmarinoes.smarthut.config;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import org.junit.jupiter.api.Test;
public class EmailConfigurationServiceTests {
@Test
public void test() {
final EmailConfigurationService s = new EmailConfigurationService();
s.setResetPasswordSubject("s");
s.setResetPassword("s");
s.setResetPasswordPath("s");
s.setResetPasswordRedirect("s");
s.setRegistrationRedirect("s");
assertThat(s.getResetPasswordSubject()).isEqualTo("s");
assertThat(s.getResetPassword()).isEqualTo("s");
assertThat(s.getResetPasswordPath()).isEqualTo("s");
assertThat(s.getResetPasswordRedirect()).isEqualTo("s");
assertThat(s.getRegistrationRedirect()).isEqualTo("s");
}
}