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
-
-
Constructor Summary
Constructors Constructor Description TryTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Can we get our intermittent test result to show up without the JUnit test harness?protected voidsetResult(String newResult)setter for the value to be called from execute() method.voidtryAssignTest()Test the assign methods in the Try class.voidtryExecuteTest()Test the execute methods in the Try class.voidtryFailTestAssign()Test the fail methods in the Try class using Assignments.voidtryFailTestAssignLambda()Test the fail methods in the Try class using assignments with lambda functions.voidtryFailTestExecute()Test the fail methods in the Try class using Executions.voidtryFailTestExecuteLambda()Test the fail methods in the Try class using lambda executions.
-
-
-
Field Detail
-
value
protected String value
value to test for change by execute() method.
-
-
Method Detail
-
tryAssignTest
public void tryAssignTest() throws RuntimeExceptionTest the assign methods in the Try class.- Throws:
RuntimeException- if that happens (uncaught); this test has failed.
-
setResult
protected void setResult(String newResult)
setter for the value to be called from execute() method.- Parameters:
newResult- String; the value to set
-
tryExecuteTest
public void tryExecuteTest() throws RuntimeExceptionTest the execute methods in the Try class.- Throws:
RuntimeException- if that happens (uncaught); this test has failed.
-
tryFailTestAssignLambda
public void tryFailTestAssignLambda() throws RuntimeExceptionTest the fail methods in the Try class using assignments with lambda functions.- Throws:
RuntimeException- if that happens (uncaught); this test has failed.
-
tryFailTestAssign
public void tryFailTestAssign() throws RuntimeExceptionTest the fail methods in the Try class using Assignments.- Throws:
RuntimeException- if that happens (uncaught); this test has failed.
-
tryFailTestExecuteLambda
public void tryFailTestExecuteLambda() throws RuntimeExceptionTest the fail methods in the Try class using lambda executions.- Throws:
RuntimeException- if that happens (uncaught); this test has failed.
-
tryFailTestExecute
public void tryFailTestExecute() throws RuntimeExceptionTest the fail methods in the Try class using Executions.- Throws:
RuntimeException- if that happens (uncaught); this test has failed.
-
main
public static void main(String[] args)
Can we get our intermittent test result to show up without the JUnit test harness?- Parameters:
args- String[]; the command line arguments
-
-