org.hibernate.beanvalidation.tck.util
Class PathUtil
java.lang.Object
org.hibernate.beanvalidation.tck.util.PathUtil
public class PathUtil
- extends Object
Provides assertion methods for property paths.
- Author:
- Gunnar Morling
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathUtil
public PathUtil()
pathWith
public static PathUtil.PathExpectation pathWith()
- Creates a path expectation which can be configured using the offered
fluent API methods.
- Returns:
- An empty path expection.
assertViolationsContainOnlyPaths
public static void assertViolationsContainOnlyPaths(Set<? extends javax.validation.ConstraintViolation<?>> actualViolations,
PathUtil.PathExpectation... paths)
- Asserts that the given violations only contain the given expected
property paths.
- Parameters:
actualViolations - A set of constraint violations.paths - One or more expected property paths.
Copyright © 2008-2013. All Rights Reserved.