org.unitils.objectvalidation
Class ValidationModuleTestListener

java.lang.Object
  extended by org.unitils.core.TestListener
      extended by org.unitils.objectvalidation.ValidationModuleTestListener

public class ValidationModuleTestListener
extends org.unitils.core.TestListener

Contains the logic to load the validation logic from the test and run it.

Since:
Oct 9, 2013
Author:
Matthieu Mestrez

Constructor Summary
ValidationModuleTestListener(ObjectValidationRulesCollection validationRulesCollection)
           
 
Method Summary
 void beforeTestMethod(Object testObject, Method testMethod)
           
 
Methods inherited from class org.unitils.core.TestListener
afterCreateTestObject, afterTestMethod, afterTestTearDown, beforeTestClass, beforeTestSetUp, shouldInvokeTestMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationModuleTestListener

public ValidationModuleTestListener(ObjectValidationRulesCollection validationRulesCollection)
Method Detail

beforeTestMethod

public void beforeTestMethod(Object testObject,
                             Method testMethod)
Overrides:
beforeTestMethod in class org.unitils.core.TestListener
See Also:
TestListener.beforeTestMethod(java.lang.Object, java.lang.reflect.Method)


Copyright © 2013-2015. All Rights Reserved.