Package org.djutils.exceptions
Class TryTest
java.lang.Object
org.djutils.exceptions.TryTest
public class TryTest extends Object
Test the methods in the Try class.
- Author:
- Peter Knoppers
-
Field Summary
-
Constructor Summary
Constructors Constructor Description TryTest()
-
Method Summary
Modifier and Type Method Description static void
main(String[] args)
Can we get our intermittent test result to show up without the JUnit test harness?protected void
setResult(String newResult)
setter for the value to be called from execute() method.void
tryAssignTest()
Test the assign methods in the Try class.void
tryExecuteTest()
Test the execute methods in the Try class.void
trySucceedFailTestAssign()
Test the fail / succeed methods in the Try class using assignments.void
trySucceedFailTestExecute()
Test the fail / succeed methods in the Try class using executions.
-
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
- String; the value to set
-
tryExecuteTest
Test the execute methods in the Try class.- Throws:
RuntimeException
- if that happens (uncaught); this test has failed.
-
trySucceedFailTestAssign
Test the fail / succeed methods in the Try class using assignments.- Throws:
RuntimeException
- if that happens (uncaught); this test has failed.
-
trySucceedFailTestExecute
Test the fail / succeed methods in the Try class using executions.- 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
- String[]; the command line arguments
-