Getter/Setter for Name and Fullname
authorMichael <Michael@Michael-LT.bfh.ch>
Wed, 21 Oct 2015 09:28:22 +0000 (11:28 +0200)
committerMichael <Michael@Michael-LT.bfh.ch>
Wed, 21 Oct 2015 09:28:22 +0000 (11:28 +0200)
.classpath
src/libs/commons-codec-1.10.jar [new file with mode: 0644]
src/test/java/ch/bfh/ti/srs/core/UserTest.java

index 73d0ecb..0adb450 100644 (file)
@@ -22,6 +22,6 @@
                        <attribute name="maven.pomderived" value="true"/>\r
                </attributes>\r
        </classpathentry>\r
-       <classpathentry kind="lib" path="C:/Users/Michael/Downloads/commons-codec-1.10/commons-codec-1.10/commons-codec-1.10.jar"/>\r
+       <classpathentry kind="lib" path="src/libs/commons-codec-1.10.jar"/>\r
        <classpathentry kind="output" path="target/classes"/>\r
 </classpath>\r
diff --git a/src/libs/commons-codec-1.10.jar b/src/libs/commons-codec-1.10.jar
new file mode 100644 (file)
index 0000000..1d7417c
Binary files /dev/null and b/src/libs/commons-codec-1.10.jar differ
index 23942cc..c486fd0 100644 (file)
@@ -55,6 +55,7 @@ public class UserTest {
                assertFalse(TestUser.setMail(wrongMail2));\r
        }\r
        \r
+       @Test\r
        public void getMailTest() {\r
                String mail = "grosm9@bfh.ch";\r
                \r
@@ -62,4 +63,15 @@ public class UserTest {
                assertEquals(mail, TestUser.getMail());\r
        }\r
 \r
+       @Test\r
+       public void setAndGetNameTest() {\r
+               TestUser.setName = "Tester";\r
+               assertEquals("Tester",TestUser.getName());\r
+       }\r
+       \r
+       @Test\r
+       public void setAndGetFullnameTest() {\r
+               TestUser.setFullname = "Dummy";\r
+               asserEquals("Dummy", TestUser.getFullname());\r
+       }\r
 }\r