This exception may be thrown by methods that have detected an i/o exception while retrieving requested stock information
public GetQuoteException(String message, Exception nested)
Domain testing of input and output conditions, and external
pre-conditions for class GetQuoteException,
constructor public GetQuoteException(String message, Exception nested)
.
message | nested | Expected results | Test Case ID |
---|---|---|---|
null | some valid exception | Will create an instance of GetQuoteException | GetQuoteException0001 |
some string | some valid exception | Constructs an object with the specified message | GetQuoteException1001 |
some string | null | Will create an instance of GetQuoteException | GetQuoteException2002 |
message | nested | Expected results | Test Case ID |
---|---|---|---|
empty string, string of length 1 | some valid exception | Constructs an object with the specified message | GetQuoteException1001 |
Assertion | Test Case ID |
---|---|
Constructs a GetQuoteException with the specified detail message and nested exception. | GetQuoteException2001 |
Argument message can be null as can cause. | GetQuoteException0001 |
public java.lang.Exception getNested()
Domain testing of input and output conditions, and external
pre-conditions for class GetQuoteException,
method public java.lang.Exception getNested()
.
Assertion | Test Case ID |
---|---|
Gets the nested exception. | GetQuoteException2001 |
return:Nested exception or null if there is no nested exception. | GetQuoteException2002 |
Test cases included:
GetQuoteException2001,
GetQuoteException0001,
GetQuoteException1001,
GetQuoteException2002.
title | GetQuoteException constructor tests |
source | CtorTests.java |
executeClass | com.sun.tdk.sampletck.tests.api.GetQuoteException.CtorTests |