ClassTester 
    Deprecated (for removal)
Since version 0.7.0
A class tester which tests properties of a class. This class is deprecated and will be removed in a future release. Use the new API located in the org.tudalgo.algoutils.tutor.general.reflections package instead.
Author
Ruben Deisenroth
Constructors
Link copied to clipboard
                  public void ClassTester(String packageName, String className, double similarity, int accessModifier, Class<? super T> superClass, List<IdentifierMatcher> implementsInterfaces, T classInstance)
Constructs and initializes a class tester.
public void ClassTester(String packageName, String className, double similarity, int accessModifier, Class<? super T> superClass, ArrayList<IdentifierMatcher> implementsInterfaces)
Constructs and initializes a class tester.
public void ClassTester(String packageName, String className, double similarity, int accessModifier)
Constructs and initializes a class tester.
Constructs and initializes a class tester.
Constructs and initializes a class tester.
Constructs and initializes a class tester.
Properties
Link copied to clipboard
                  public int accessModifier
The expected access modifier count.
Link copied to clipboard
                  The class identifier containing the name of the class and the similarity to accept alternative identifiers.
Link copied to clipboard
                  The class instance of the tested class.
Link copied to clipboard
                  The matcher used for the interfaces that are expected to be implemented.
Link copied to clipboard
                  The expected super class.
Functions
Link copied to clipboard
                  Adds an interface matcher used for the test class.
Link copied to clipboard
                  Tests whether the access modifier count is correct and fails it with a predefined message if it fails.
Link copied to clipboard
                  Tests whether the class instance of the tested class is not 
null.Link copied to clipboard
                  Tests whether the class instance is not 
null and fails with a proper message if it is null.Link copied to clipboard
                  Tests that theClass is not 
null and fails with the predefined message if it cannot be resolved.Link copied to clipboard
                  public void assertConstructorValid(Constructor<T> constructor, int accessModifier, ArrayList<ParameterMatcher> parameters)
public void assertConstructorValid(Constructor<T> constructor, int accessModifier, Array<ParameterMatcher> parameters)
Tests whether a constructor was declared correctly.
Link copied to clipboard
                  Tests whether there are no interface extension.
Link copied to clipboard
                  Tests whether the enum constants with the specified names exists.
Link copied to clipboard
                  Tests whether a field has a certain content.
Tests whether the specified field has a specified content.
Link copied to clipboard
                  Tests whether the specified field has a Getter-Method.
Link copied to clipboard
                  Tests whether the specified field has a Setter-Method.
Link copied to clipboard
                  Tests whether all described interfaces by the specified matchers are being extended.
Link copied to clipboard
                  Tests whether the test class is an enum.
Tests whether the class instance is an enum.
Link copied to clipboard
                  Tests whether the test class is an interface.
Tests whether the class instance is an interface.
Link copied to clipboard
                  Tests whether the test class is a plain class.
Tests whether the class instance is a plain class.
Link copied to clipboard
                  Tests whether this class is a spy.
Link copied to clipboard
                  Tests whether the super classes fo the test classes matches the specified super classes.
Link copied to clipboard
                  Resolves the class if necessary.
Link copied to clipboard
                  Makes the class a spy if not done already.
Link copied to clipboard
                  Returns instance of a class tester with the needed configuration for spoon.
Link copied to clipboard
                  Returns 
true if theClass is not null.Link copied to clipboard
                  Returns 
true if the class instance of the tested class is not null.Link copied to clipboard
                  Resolves a class with the current class name and similarity.
Resolves a class with the specified similarity.
Resolves a class with the specified name and similarity.
Link copied to clipboard
                  Resolves an instance of a given class (even abstract).
Link copied to clipboard
                  Link copied to clipboard
                  Returns the expected access modifier.
Link copied to clipboard
                  Returns all fields of the test class and its super classes.
Returns all fields of a class and its super classes recursively.
Link copied to clipboard
                  Returns the class matcher used on the test class.
Link copied to clipboard
                  Returns class instance of the tested class.
Link copied to clipboard
                  Generates a predefined class not found message.
Link copied to clipboard
                  Returns the default value for the specified type.
Link copied to clipboard
                  Generates a predefined message for a missing enum constant.
Link copied to clipboard
                  Link copied to clipboard
                  Returns the field content.
Returns the content of a field.
Link copied to clipboard
                  Returns the implemented interfaces of the tested class.
Link copied to clipboard
                  Generates a predefined interface not found message.
Link copied to clipboard
                  Returns the MockingDetails of theClass.
Link copied to clipboard
                  Returns a new test class instance.
Link copied to clipboard
                  Returns a new test class instance.
Link copied to clipboard
                  Returns a random value for the specified type.
Link copied to clipboard
                  Returns the super class of the tested class.
Link copied to clipboard
                  Returns the test classes if it is already resolved.
Link copied to clipboard
                  Resolves an instance of a given class (even abstract).
Link copied to clipboard
                  Resolves the class and instance and stores them.
Link copied to clipboard
                  Resolves a field (attribute) with a specified matcher.
Link copied to clipboard
                  Finds the class to test and stores it.
Link copied to clipboard
                  Resolves a constructor with the specified parameters.
Resolves a constructor with the parameters.
Link copied to clipboard
                  Resolves a test class instance.
Link copied to clipboard
                  Resolves the class and instance and stores them.
Link copied to clipboard
                  Resolve a real test class instance.
Link copied to clipboard
                  Sets the expected access modifier the specified value.
Link copied to clipboard
                  Sets the class matcher used on the test class to the new value.
Link copied to clipboard
                  Sets class instance of the tested class to the specified value.
Link copied to clipboard
                  Sets a field value to a random value.
Link copied to clipboard
                  Sets the typed field to the specified value.
Link copied to clipboard
                  Sets the implemented class of the tested class to the specified value.
Link copied to clipboard
                  Sets the super class of the tested class to the specified value.
Link copied to clipboard
                  Sets the test class instance to the specified class instance.
Link copied to clipboard
                  Tests whether the Class is declared correctly.