Package org.djutils.exceptions
Class TryTest
java.lang.Object
org.djutils.exceptions.TryTest
Test the methods in the Try class.
- Author:
- Peter Knoppers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Can we get our intermittent test result to show up without the JUnit test harness?protected void
setter for the value to be called from execute() method.void
Test the assign methods in the Try class.void
Test the execute methods in the Try class.
-
Field Details
-
value
value to test for change by execute() method.
-
-
Constructor Details
-
TryTest
public TryTest()
-
-
Method Details
-
tryAssignTest
Test the assign methods in the Try class.- Throws:
RuntimeException
- if that happens (uncaught); this test has failed.
-
setResult
setter for the value to be called from execute() method.- Parameters:
newResult
- the value to set
-
tryExecuteTest
Test the execute methods in the Try class.- Throws:
RuntimeException
- if that happens (uncaught); this test has failed.
-
main
Can we get our intermittent test result to show up without the JUnit test harness?- Parameters:
args
- the command line arguments
-