From 779f143698bf3bfdeb5f39ab2a7a49d5c14b77c2 Mon Sep 17 00:00:00 2001
From: CONGRANLI <907112284@qq.com>
Date: Fri, 6 Sep 2019 01:40:07 +1000
Subject: [PATCH] change the boudary testcase

---
 .../swen90006/passbook/BoundaryTests.java     | 23 ++++++++-----------
 1 file changed, 10 insertions(+), 13 deletions(-)

diff --git a/tests/Boundary/swen90006/passbook/BoundaryTests.java b/tests/Boundary/swen90006/passbook/BoundaryTests.java
index e071135..fbae868 100755
--- a/tests/Boundary/swen90006/passbook/BoundaryTests.java
+++ b/tests/Boundary/swen90006/passbook/BoundaryTests.java
@@ -15,36 +15,33 @@ public class BoundaryTests
     extends PartitioningTests
 {
 	
+	//Test on point 7
     @Test public void WeakPassphraseException() throws DuplicateUserException {
         boolean WeakPassphraseException = false;
         String passbookUsername = "AlexTina";
-        String passbookphrase = "123Abcde";
+        String passbookphrase = "123Abcd";
         try{
             pb.addUser(passbookUsername,passbookphrase);
         }catch(WeakPassphraseException e){
             WeakPassphraseException = true;
         }
-        assertFalse(WeakPassphraseException);
+        assertTrue(WeakPassphraseException);
     }
 
-    //Test on point 7
+    //Test on point 8
     @Test public void WeakPassphraseException2() throws DuplicateUserException {
         boolean WeakPassphraseException = false;
         String passbookUsername = "AlexTina";
-        String passbookphrase = "123ABCd";
+        String passbookphrase = "1234ABCd";
         try{
             pb.addUser(passbookUsername,passbookphrase);
         }catch(WeakPassphraseException e){
             WeakPassphraseException = true;
         }
-        assertTrue(WeakPassphraseException);
-    }
-    //Add another test
-    @Test public void anotherTEst()
-    {
-	//include a message for better feedback
-	final int expected = 2;
-	final int actual = 2;
-	assertEquals("Some failure message", expected, actual);
+        assertFalse(WeakPassphraseException);
     }
+    
+    
+    
+
 }
-- 
GitLab