Test Specifications and Descriptions for GetQuoteException

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)

Description

Domain testing of input and output conditions, and external pre-conditions for class GetQuoteException, constructor public GetQuoteException(String message, Exception nested).

Equivalence Class Partitioning

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

Boundary Value Analysis

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 testing

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

Test Descriptions

See:
Test descriptions for CtorTests.java (GetQuoteException2001, GetQuoteException0001, GetQuoteException1001, GetQuoteException2002)


public java.lang.Exception getNested()

Description

Domain testing of input and output conditions, and external pre-conditions for class GetQuoteException, method public java.lang.Exception getNested().

Assertion testing

Assertion Test Case ID
Gets the nested exception. GetQuoteException2001
return:Nested exception or null if there is no nested exception. GetQuoteException2002

Test Descriptions

Test cases included:
GetQuoteException2001, GetQuoteException0001, GetQuoteException1001, GetQuoteException2002.

title GetQuoteException constructor tests
source CtorTests.java
executeClass com.sun.tdk.sampletck.tests.api.GetQuoteException.CtorTests


Last updated: 02/02/15
Copyright © 2002 Sun Microsystems, Inc. All rights reserved.
SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.