コード例 #1
0
 /** Tests the functionality of the isSatisfied-method, if it fails. */
 public final void testIsSatisfiedFails() {
   RegexConstraint regexConstraint = new RegexConstraint(REGEX);
   assertFalse(regexConstraint.isSatisfied("abcdefghijkl"));
 }
コード例 #2
0
 /** Tests the functionality of the isSatisfied-method, if it succeeds. */
 public final void testIsSatisfiedSucceeds() {
   RegexConstraint regexConstraint = new RegexConstraint(REGEX);
   assertTrue(regexConstraint.isSatisfied("0123456789"));
 }