From f230bd893776777baaefc81a20f38e4b1c3dd927 Mon Sep 17 00:00:00 2001 From: "Claudio Maggioni (maggicl)" Date: Wed, 27 May 2020 11:52:44 +0200 Subject: [PATCH] Tests --- .../EmailConfigurationServiceTests.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/config/EmailConfigurationServiceTests.java diff --git a/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/config/EmailConfigurationServiceTests.java b/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/config/EmailConfigurationServiceTests.java new file mode 100644 index 0000000..92741cb --- /dev/null +++ b/src/test/java/ch/usi/inf/sa4/sanmarinoes/smarthut/config/EmailConfigurationServiceTests.java @@ -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"); + } +}