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
-
Constructor Summary
-
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.void
Test the fail methods in the Try class using Assignments.void
Test the fail methods in the Try class using assignments with lambda functions.void
Test the fail methods in the Try class using Executions.void
Test the fail methods in the Try class using lambda 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.
-
tryFailTestAssignLambda
Test the fail methods in the Try class using assignments with lambda functions.- Throws:
RuntimeException
- if that happens (uncaught); this test has failed.
-
tryFailTestAssign
Test the fail methods in the Try class using Assignments.- Throws:
RuntimeException
- if that happens (uncaught); this test has failed.
-
tryFailTestExecuteLambda
Test the fail methods in the Try class using lambda executions.- Throws:
RuntimeException
- if that happens (uncaught); this test has failed.
-
tryFailTestExecute
Test the fail 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
-