Class CompareIdenticalFunctions


  • public abstract class CompareIdenticalFunctions
    extends CompareEquivalentFunctions
    Provides common implementations of functions in CompareEquivalentFunctions. Assumes only images are modified and tests those.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CompareIdenticalFunctions​(java.lang.Class<?> testClass, java.lang.Class<?>... validationClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void compareResults​(java.lang.Object targetResult, java.lang.Object[] targetParam, java.lang.Object validationResult, java.lang.Object[] validationParam)
      Compares the two sets of results from the target and validation methods.
      protected boolean isEquivalent​(java.lang.reflect.Method candidate, java.lang.reflect.Method evaluation)
      Returns two if the two methods provide results that should be compared
      protected boolean isTestMethod​(java.lang.reflect.Method m)
      Checks to see if the provided method from the test class is a method that should be tested
      protected java.lang.Object[] reformatForValidation​(java.lang.reflect.Method m, java.lang.Object[] targetParam)
      Adjusts the input for the validation method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CompareIdenticalFunctions

        protected CompareIdenticalFunctions​(java.lang.Class<?> testClass,
                                            java.lang.Class<?>... validationClass)
    • Method Detail

      • isEquivalent

        protected boolean isEquivalent​(java.lang.reflect.Method candidate,
                                       java.lang.reflect.Method evaluation)
        Description copied from class: CompareEquivalentFunctions
        Returns two if the two methods provide results that should be compared
        Specified by:
        isEquivalent in class CompareEquivalentFunctions
      • reformatForValidation

        protected java.lang.Object[] reformatForValidation​(java.lang.reflect.Method m,
                                                           java.lang.Object[] targetParam)
        Description copied from class: CompareEquivalentFunctions
        Adjusts the input for the validation method. Allows methods with different parameter sets to be used.
        Specified by:
        reformatForValidation in class CompareEquivalentFunctions
      • compareResults

        protected void compareResults​(java.lang.Object targetResult,
                                      java.lang.Object[] targetParam,
                                      java.lang.Object validationResult,
                                      java.lang.Object[] validationParam)
        Description copied from class: CompareEquivalentFunctions
        Compares the two sets of results from the target and validation methods.
        Specified by:
        compareResults in class CompareEquivalentFunctions