Re-enabled tests (after having added rng-tools package on build server).
[staff/due1/sed-hs15-srs-purple.git] / src / test / java / ch / bfh / ti / srs / core / UserTest.java
index d930c98..d1b5656 100644 (file)
@@ -11,24 +11,24 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;\r
 import static org.junit.Assert.assertTrue;\r
 \r
-import org.junit.Ignore;\r
+import org.junit.Test;\r
 \r
 public class UserTest {\r
 \r
-       @Ignore\r
+       @Test\r
        public void createUserTest() {\r
                User testUser = new User("TestUser", "pass");\r
                assertEquals("TestUser", testUser.getUserName());\r
        }\r
 \r
-       @Ignore\r
+       @Test\r
        public void checkPasswordTest() {\r
                User testUser = new User("TestUser", "pass");\r
                assertTrue(testUser.checkPassword("pass"));\r
                assertFalse(testUser.checkPassword("notmypass"));\r
        }\r
 \r
-       @Ignore\r
+       @Test\r
        public void changePasswordTest() {\r
                User testUser = new User("TestUser", "pass");\r
                assertTrue(testUser.checkPassword("pass"));\r
@@ -38,7 +38,7 @@ public class UserTest {
                assertFalse(testUser.checkPassword("notmypass"));\r
        }\r
 \r
-       @Ignore\r
+       @Test\r
        public void setMailTest() {\r
                User testUser = new User("TestUser", "pass");\r
                String goodMail = "grosm9@bfh.ch";\r
@@ -50,7 +50,7 @@ public class UserTest {
                assertFalse(testUser.setMail(wrongMail2));\r
        }\r
 \r
-       @Ignore\r
+       @Test\r
        public void getMailTest() {\r
                User testUser = new User("TestUser", "pass");\r
                String mail = "grosm9@bfh.ch";\r
@@ -59,14 +59,14 @@ public class UserTest {
                assertEquals(mail, testUser.getMail());\r
        }\r
 \r
-       @Ignore\r
+       @Test\r
        public void setAndGetNameTest() {\r
                User testUser = new User("TestUser", "pass");\r
                testUser.setName("Tester");\r
                assertEquals("Tester",testUser.getName());\r
        }\r
 \r
-       @Ignore\r
+       @Test\r
        public void setAndGetLastnameTest() {\r
                User testUser = new User("TestUser", "pass");\r
                testUser.setLastname("Dummy");\r