Class GraphRunner

java.lang.Object
com.graphs.utils.graph.GraphRunner
All Implemented Interfaces:
Runnable

public class GraphRunner extends Object implements Runnable
This class implements testing behaviour of Graph class.
Since:
1.0
Version:
JDK 1.7
Author:
Ɓukasz Malara
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final boolean
    This field stores a value that decides whether this runner class should run exceptions' test as well or should not.
  • Constructor Summary

    Constructors
    Constructor
    Description
    This constructor creates runner class of Graph.
    GraphRunner(boolean allowExceptions)
    This constructor creates runner class of Graph.
  • Method Summary

    Modifier and Type
    Method
    Description
    private static void
    This method initializes run of a test.
    private static void
    This method initializes run of exceptions' test.
    void
    run()
    This method runs a test of Graph class behaviour.

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • allowExceptions

      private final boolean allowExceptions
      This field stores a value that decides whether this runner class should run exceptions' test as well or should not.
      Since:
      2.0
  • Constructor Details

    • GraphRunner

      public GraphRunner()
      This constructor creates runner class of Graph.
      Since:
      1.0
    • GraphRunner

      public GraphRunner(boolean allowExceptions)
      This constructor creates runner class of Graph.
      Parameters:
      allowExceptions - if true run exceptions test as well, if false run basic test only.
      Since:
      2.0
  • Method Details

    • run

      public void run()
      This method runs a test of Graph class behaviour.
      Specified by:
      run in interface Runnable
      Since:
      1.0
    • initRun

      private static void initRun()
      This method initializes run of a test.
      Since:
      1.0
    • initRunExceptions

      private static void initRunExceptions()
      This method initializes run of exceptions' test. None exception requires handling or catching outside this method.
      Since:
      1.0