public class ValidationXmlTestHelper extends Object
META-INF/validation.xml.| Constructor and Description |
|---|
ValidationXmlTestHelper(Class<?> clazz)
Creates a new
ValidationXmlTestHelper. |
| Modifier and Type | Method and Description |
|---|---|
void |
runWithCustomValidationXml(String validationXmlName,
Runnable runnable)
Executes the given runnable, using the specified file as replacement for
META-INF/validation.xml. |
public ValidationXmlTestHelper(Class<?> clazz)
ValidationXmlTestHelper.clazz - A class through which the specified validation.xml stand-in will be loaded.public void runWithCustomValidationXml(String validationXmlName, Runnable runnable)
META-INF/validation.xml.validationXmlName - The file to be used as validation.xml file.runnable - The runnable to execute.Copyright © 2007-2025 Red Hat, Inc. All Rights Reserved