Package Model

Class TesterModel

java.lang.Object
Model.TesterModel

public class TesterModel
extends java.lang.Object
This is the Model class for the entire program. It uses Java Reflection to retrive all Classes from the given TestClass and tests all the methods that start with ''test''. It also invokes the setUp and tearDown method for every test run to assure the tests are correct. It also controls if the TestClass actually implements the standards for TestClass. If not it will do nothing.
  • Constructor Summary

    Constructors 
    Constructor Description
    TesterModel()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getResult()  
    void testClasses​(java.lang.String className)
    The main public method of the Class which can be called on with a appropriate className given as param.

    Methods inherited from class java.lang.Object

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

  • Method Details

    • testClasses

      public void testClasses​(java.lang.String className)
      The main public method of the Class which can be called on with a appropriate className given as param.
      Parameters:
      className - the TestClass to be tested.
    • getResult

      public java.lang.String getResult()