Ignoring all test methods. HEAD
authorEric Dubuis <eric.dubuis@bfh.ch>
Wed, 21 Oct 2015 18:31:44 +0000 (20:31 +0200)
committerEric Dubuis <eric.dubuis@bfh.ch>
Wed, 21 Oct 2015 18:31:44 +0000 (20:31 +0200)
src/test/java/ch/bfh/ti/srs/core/UserTest.java

index ac1e090..d930c98 100644 (file)
@@ -7,77 +7,69 @@
  */\r
 package ch.bfh.ti.srs.core;\r
 \r
  */\r
 package ch.bfh.ti.srs.core;\r
 \r
-import static org.junit.Assert.*;\r
+import static org.junit.Assert.assertEquals;\r
+import static org.junit.Assert.assertFalse;\r
+import static org.junit.Assert.assertTrue;\r
 \r
 \r
-import java.util.Set;\r
-\r
-import org.junit.BeforeClass;\r
-import org.junit.Test;\r
+import org.junit.Ignore;\r
 \r
 public class UserTest {\r
 \r
 public class UserTest {\r
-       private Set<User> userList;\r
-       User TestUser;\r
-       \r
-       @BeforeClass\r
-       public static void setUpBeforeClass() throws Exception {\r
-               \r
-       }\r
 \r
 \r
-       @Test\r
+       @Ignore\r
        public void createUserTest() {\r
        public void createUserTest() {\r
-               TestUser = new User("TestUser","pass");\r
-               assertEquals("TestUser", TestUser.getUserName());\r
+               User testUser = new User("TestUser", "pass");\r
+               assertEquals("TestUser", testUser.getUserName());\r
        }\r
        }\r
-       \r
-       @Test\r
+\r
+       @Ignore\r
        public void checkPasswordTest() {\r
        public void checkPasswordTest() {\r
-               TestUser = new User("TestUser","pass");\r
-               assertTrue(TestUser.checkPassword("pass"));\r
-               assertFalse(TestUser.checkPassword("notmypass"));\r
+               User testUser = new User("TestUser", "pass");\r
+               assertTrue(testUser.checkPassword("pass"));\r
+               assertFalse(testUser.checkPassword("notmypass"));\r
        }\r
        }\r
-       \r
-       @Test\r
+\r
+       @Ignore\r
        public void changePasswordTest() {\r
        public void changePasswordTest() {\r
-               TestUser = new User("TestUser","pass");\r
-               assertTrue(TestUser.checkPassword("pass"));\r
-               TestUser.changePassword("newpass");\r
-               assertTrue(TestUser.checkPassword("newpass"));\r
-               assertFalse(TestUser.checkPassword("pass"));\r
-               assertFalse(TestUser.checkPassword("notmypass"));\r
+               User testUser = new User("TestUser", "pass");\r
+               assertTrue(testUser.checkPassword("pass"));\r
+               testUser.changePassword("newpass");\r
+               assertTrue(testUser.checkPassword("newpass"));\r
+               assertFalse(testUser.checkPassword("pass"));\r
+               assertFalse(testUser.checkPassword("notmypass"));\r
        }\r
        }\r
-       \r
-       @Test\r
+\r
+       @Ignore\r
        public void setMailTest() {\r
        public void setMailTest() {\r
-               TestUser = new User("TestUser","pass");\r
+               User testUser = new User("TestUser", "pass");\r
                String goodMail = "grosm9@bfh.ch";\r
                String wrongMail1 = "ioajfd.ch";\r
                String wrongMail2 = "asjdfh@fds";\r
                String goodMail = "grosm9@bfh.ch";\r
                String wrongMail1 = "ioajfd.ch";\r
                String wrongMail2 = "asjdfh@fds";\r
-               \r
-               assertTrue(TestUser.setMail(goodMail));\r
-               assertFalse(TestUser.setMail(wrongMail1));\r
-               assertFalse(TestUser.setMail(wrongMail2));\r
+\r
+               assertTrue(testUser.setMail(goodMail));\r
+               assertFalse(testUser.setMail(wrongMail1));\r
+               assertFalse(testUser.setMail(wrongMail2));\r
        }\r
        }\r
-       \r
-       @Test\r
+\r
+       @Ignore\r
        public void getMailTest() {\r
        public void getMailTest() {\r
-               TestUser = new User("TestUser","pass");\r
+               User testUser = new User("TestUser", "pass");\r
                String mail = "grosm9@bfh.ch";\r
                String mail = "grosm9@bfh.ch";\r
-               \r
-               TestUser.setMail(mail);\r
-               assertEquals(mail, TestUser.getMail());\r
+\r
+               testUser.setMail(mail);\r
+               assertEquals(mail, testUser.getMail());\r
        }\r
 \r
        }\r
 \r
-       @Test\r
+       @Ignore\r
        public void setAndGetNameTest() {\r
        public void setAndGetNameTest() {\r
-               TestUser = new User("TestUser","pass");\r
-               TestUser.setName("Tester");\r
-               assertEquals("Tester",TestUser.getName());\r
+               User testUser = new User("TestUser", "pass");\r
+               testUser.setName("Tester");\r
+               assertEquals("Tester",testUser.getName());\r
        }\r
        }\r
-       \r
-       @Test\r
+\r
+       @Ignore\r
        public void setAndGetLastnameTest() {\r
        public void setAndGetLastnameTest() {\r
-               TestUser = new User("TestUser","pass");\r
-               TestUser.setLastname("Dummy");\r
-               assertEquals("Dummy", TestUser.getLastname());\r
+               User testUser = new User("TestUser", "pass");\r
+               testUser.setLastname("Dummy");\r
+               assertEquals("Dummy", testUser.getLastname());\r
        }\r
 }\r
        }\r
 }\r