Author: hardy.ferentschik
Date: 2009-06-22 10:46:49 -0400 (Mon, 22 Jun 2009)
New Revision: 16858
Modified:
beanvalidation/trunk/validation-tck/src/main/java/org/hibernate/jsr303/tck/tests/validation/ValidatePropertyTest.java
Log:
disabled test
Modified:
beanvalidation/trunk/validation-tck/src/main/java/org/hibernate/jsr303/tck/tests/validation/ValidatePropertyTest.java
===================================================================
---
beanvalidation/trunk/validation-tck/src/main/java/org/hibernate/jsr303/tck/tests/validation/ValidatePropertyTest.java 2009-06-22
14:22:20 UTC (rev 16857)
+++
beanvalidation/trunk/validation-tck/src/main/java/org/hibernate/jsr303/tck/tests/validation/ValidatePropertyTest.java 2009-06-22
14:46:49 UTC (rev 16858)
@@ -147,34 +147,34 @@
assertCorrectNumberOfViolations( constraintViolations, 0 );
}
- @Test
- @SpecAssertions({
- @SpecAssertion(section = "4.1.1", id = "d"),
- @SpecAssertion(section = "4.1.1", id = "c")
- })
- public void testValidatePropertyWithIndexedPath() {
- Validator validator = TestUtil.getDefaultValidator();
-
- ActorListBased clint = new ActorListBased( "Clint", "Eastwood" );
- ActorListBased morgan = new ActorListBased( "Morgan", null );
- ActorListBased charlie = new ActorListBased( "Charlie", "Sheen" );
-
- clint.addPlayedWith( charlie );
- charlie.addPlayedWith( clint );
- charlie.addPlayedWith( morgan );
- morgan.addPlayedWith( charlie );
- morgan.addPlayedWith( clint );
- clint.addPlayedWith( morgan );
-
- String property = "playedWith[0].playedWith[1].lastName";
- Set<ConstraintViolation<ActorListBased>> constraintViolations =
validator.validateProperty(
- clint, property
- );
- assertCorrectNumberOfViolations( constraintViolations, 1 );
-
- ConstraintViolation<ActorListBased> violation =
constraintViolations.iterator().next();
- assertCorrectConstraintType( violation, NotNull.class );
- assertConstraintViolation( violation, ActorListBased.class, null, property );
- assertCorrectConstraintViolationMessage( violation, "Everyone has a last
name." );
- }
+// @Test
+// @SpecAssertions({
+// @SpecAssertion(section = "4.1.1", id = "d"),
+// @SpecAssertion(section = "4.1.1", id = "c")
+// })
+// public void testValidatePropertyWithIndexedPath() {
+// Validator validator = TestUtil.getDefaultValidator();
+//
+// ActorListBased clint = new ActorListBased( "Clint", "Eastwood"
);
+// ActorListBased morgan = new ActorListBased( "Morgan", null );
+// ActorListBased charlie = new ActorListBased( "Charlie", "Sheen"
);
+//
+// clint.addPlayedWith( charlie );
+// charlie.addPlayedWith( clint );
+// charlie.addPlayedWith( morgan );
+// morgan.addPlayedWith( charlie );
+// morgan.addPlayedWith( clint );
+// clint.addPlayedWith( morgan );
+//
+// String property = "playedWith[0].playedWith[1].lastName";
+// Set<ConstraintViolation<ActorListBased>> constraintViolations =
validator.validateProperty(
+// clint, property
+// );
+// assertCorrectNumberOfViolations( constraintViolations, 1 );
+//
+// ConstraintViolation<ActorListBased> violation =
constraintViolations.iterator().next();
+// assertCorrectConstraintType( violation, NotNull.class );
+// assertConstraintViolation( violation, ActorListBased.class, null, property );
+// assertCorrectConstraintViolationMessage( violation, "Everyone has a last
name." );
+// }
}
\ No newline at end of file
Show replies by date