You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.out.println("Number of results = " + readResults.size());
744
-
assertEquals("Wrong number of results", 0, readResults.size()); */
745
+
// assertEquals("Wrong number of results", 0, readResults.size());
745
746
}
746
747
747
748
@Test
@@ -1054,7 +1055,7 @@ public void testProtectWipeWithoutPermission() throws Exception {
1054
1055
str.append(ex.getMessage());
1055
1056
System.out.println("Exception not thrown when user does not have permissions" + str.toString());
1056
1057
}
1057
-
assertTrue("Exception not thrown when user does not have permissions", str.toString().contains("User is not allowed to protect resource at documents/protection"));
1058
+
assertTrue("Exception not thrown when user does not have permissions", str.toString().contains("Local message: User is not allowed to protect resource at documents/protection"));
1058
1059
}
1059
1060
1060
1061
@Test
@@ -1084,29 +1085,37 @@ public void testProtectWipe() throws Exception {
System.out.println("Exception when delete within 30 sec is " + str.toString());
1100
+
System.out.println("Exception when delete within 60 sec is " + str.toString());
1099
1101
}
1102
+
1103
+
assertTrue("Did not receive Expected Exception, Expecting TEMPORAL-PROTECTED, received "+str.toString(),str.toString().contains("TEMPORAL-PROTECTED"));
0 commit comments