Package com.graphs.utils.graph
Class GraphRunner
java.lang.Object
com.graphs.utils.graph.GraphRunner
- All Implemented Interfaces:
Runnable
This class implements testing behaviour of
Graph
class.- Since:
- 1.0
- Version:
- JDK 1.7
- Author:
- Ćukasz Malara
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
This field stores a value that decides whether this runner class should run exceptions' test as well or should not. -
Constructor Summary
ConstructorDescriptionThis constructor creates runner class ofGraph
.GraphRunner
(boolean allowExceptions) This constructor creates runner class ofGraph
. -
Method Summary
-
Field Details
-
allowExceptions
private final boolean allowExceptionsThis 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 ofGraph
.- Since:
- 1.0
-
GraphRunner
public GraphRunner(boolean allowExceptions) This constructor creates runner class ofGraph
.- Parameters:
allowExceptions
- iftrue
run exceptions test as well, iffalse
run basic test only.- Since:
- 2.0
-
-
Method Details
-
run
public void run()This method runs a test ofGraph
class behaviour. -
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
-