org.hibernate.beanvalidation.tck.util
Class PathUtil

java.lang.Object
  extended by org.hibernate.beanvalidation.tck.util.PathUtil

public class PathUtil
extends Object

Provides assertion methods for property paths.

Author:
Gunnar Morling

Nested Class Summary
static class PathUtil.PathExpectation
           
 
Constructor Summary
PathUtil()
           
 
Method Summary
static void assertViolationsContainOnlyPaths(Set<? extends javax.validation.ConstraintViolation<?>> actualViolations, PathUtil.PathExpectation... paths)
          Asserts that the given violations only contain the given expected property paths.
static PathUtil.PathExpectation pathWith()
          Creates a path expectation which can be configured using the offered fluent API methods.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathUtil

public PathUtil()
Method Detail

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.