1. opensymphony
  2. xwork

Commits

rainerh  committed 47ef67f

o fixed test for URLValidator
empty string should NOT result in an error

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@704e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits a354a12
  • Branches master

Comments (0)

Files changed (1)

File src/test/com/opensymphony/xwork/validator/URLValidatorTest.java

View file
  • Ignore whitespace
 		validator.setFieldName("testingUrl2");
 		validator.validate(new MyObject());
 		
-		assertTrue(validator.getValidatorContext().hasErrors());
+		assertFalse(validator.getValidatorContext().hasErrors());
 		assertFalse(validator.getValidatorContext().hasActionErrors());
 		assertFalse(validator.getValidatorContext().hasActionMessages());
-		assertTrue(validator.getValidatorContext().hasFieldErrors());
+		assertFalse(validator.getValidatorContext().hasFieldErrors());
 	}
 	
 	public void testInvalidValue() throws Exception {