Test Description and Specification for ValidationEventImpl tests



Functional tests for ValidationEventImpl

Description

Checking that tested functionality is correct

Assertion testing

Assertion Test Case ID
ValidationEventImpl(int _severity, String _message, ValidationEventLocator _locator) Throws: IllegalArgumentException - if an illegal severity field is supplied Ctor3_IAE
ValidationEventImpl(int _severity, String _message, ValidationEventLocator _locator, Throwable _linkedException) Throws: IllegalArgumentException - if an illegal severity field is supplied Ctor4_IAE
setSeverity(int _severity) Throws: IllegalArgumentException - if an illegal severity field is supplied SetSeverity_IAE

Test Descriptions

Test cases included:
CtorSetGet001, CtorSetGet002, CtorSetGet003, CtorSetGet004, CtorSetGet005, CtorSetGet101, CtorSetGet102, CtorSetGet103, CtorSetGet104, CtorSetGet105, Ctor3_IAE, Ctor4_IAE, SetSeverity_IAE.

ItemValue
title Constructor, setXXX, getXXX tests
source CtorSetGetTests.java
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.helpers.ValidationEventImpl.CtorSetGetTests
keywords runtime positive
executeArgs -TestCaseID ALL


public ValidationEventImpl(int _severity, java.lang.String _message, ValidationEventLocator _locator)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventImpl, constructor public ValidationEventImpl(int _severity, java.lang.String _message, ValidationEventLocator _locator).

Equivalence class partitioning

_severity _message _locator Expected results Test Case ID
ERROR, FATAL_ERROR, WARNING valid, non-null, non-empty string valid, non-null object no exceptions CtorSetGet001

Test Descriptions


See:
Test descriptions for CtorSetGetTests.java (CtorSetGet001)


public ValidationEventImpl(int _severity, java.lang.String _message, ValidationEventLocator _locator, java.lang.Throwable _linkedException)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventImpl, constructor public ValidationEventImpl(int _severity, java.lang.String _message, ValidationEventLocator _locator, java.lang.Throwable _linkedException).

Equivalence class partitioning

_severity _message _locator _linkedException Expected results Test Case ID
ERROR, FATAL_ERROR, WARNING valid, non-null, non-empty string valid, non-null object valid, non-null object no exceptions CtorSetGet101

Test Descriptions


See:
Test descriptions for CtorSetGetTests.java (CtorSetGet101)


public java.lang.Throwable getLinkedException()

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventImpl, method public java.lang.Throwable getLinkedException().

Assertion testing

Assertion Expected results Test Case ID
ValidationEventImpl(int, String, ValidationEventLocator) with all arguments non-null, valid: getLinkedException() returns null if the linked exception wasn't set. returns null CtorSetGet001
ValidationEventImpl(int, String, ValidationEventLocator, Throwable) with all arguments non-null, valid: getLinkedException() returns the linked exception for this warning/error. returns the exception with which ValidationEventImpl object was created CtorSetGet101

Test Descriptions


See:
Test descriptions for CtorSetGetTests.java (CtorSetGet001, CtorSetGet101)


public ValidationEventLocator getLocator()

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventImpl, method public ValidationEventLocator getLocator().

Assertion testing

Assertion Expected results Test Case ID
ValidationEventImpl(int, String, ValidationEventLocator) with all arguments non-null, valid: getLocator() returns the locator for this warning/error. returns the locator with which ValidationEventImpl object was created CtorSetGet001
ValidationEventImpl(int, String, ValidationEventLocator, Throwable) with all arguments non-null, valid: getLocator() returns the locator for this warning/error. returns the locator with which ValidationEventImpl object was created CtorSetGet101

Test Descriptions


See:
Test descriptions for CtorSetGetTests.java (CtorSetGet001, CtorSetGet101)


public java.lang.String getMessage()

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventImpl, method public java.lang.String getMessage().

Assertion testing

Assertion Expected results Test Case ID
ValidationEventImpl(int, String, ValidationEventLocator) with all arguments non-null, valid: getMessage() returns the text message for this warning/error. returns the text message with which ValidationEventImpl object was created CtorSetGet001
ValidationEventImpl(int, String, ValidationEventLocator, Throwable) with all arguments non-null, valid: getMessage() returns the text message for this warning/error. returns the text message with which ValidationEventImpl object was created CtorSetGet101

Test Descriptions


See:
Test descriptions for CtorSetGetTests.java (CtorSetGet001, CtorSetGet101)


public int getSeverity()

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventImpl, method public int getSeverity().

Assertion testing

Assertion Expected results Test Case ID
ValidationEventImpl(int, String, ValidationEventLocator) with all arguments non-null, valid: getSeverity() returns the severity code for this warning/error. returns the severity code with which ValidationEventImpl object was created CtorSetGet001
ValidationEventImpl(int, String, ValidationEventLocator, Throwable) with all arguments non-null, valid: getSeverity() returns the severity code for this warning/error. returns the severity code with which ValidationEventImpl object was created CtorSetGet101

Test Descriptions


See:
Test descriptions for CtorSetGetTests.java (CtorSetGet001, CtorSetGet101)


public void setLinkedException(java.lang.Throwable _linkedException)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventImpl, method public void setLinkedException(java.lang.Throwable _linkedException).

Assertion testing

Assertion Expected results Test Case ID
ValidationEventImpl(int, String, ValidationEventLocator) with all arguments non-null, valid: setLinkedException(valid_value) does not cause problems. no exceptions CtorSetGet004
ValidationEventImpl(int, String, ValidationEventLocator, Throwable) with all arguments non-null, valid: setLinkedException(valid_value) does not cause problems. no exceptions CtorSetGet104

Test Descriptions


See:
Test descriptions for CtorSetGetTests.java (CtorSetGet004, CtorSetGet104)


public void setLocator(ValidationEventLocator _locator)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventImpl, method public void setLocator(ValidationEventLocator _locator).

Assertion testing

Assertion Expected results Test Case ID
ValidationEventImpl(int, String, ValidationEventLocator) with all arguments non-null, valid: setLocator(valid_value) does not cause problems. no exceptions CtorSetGet005
ValidationEventImpl(int, String, ValidationEventLocator, Throwable) with all arguments non-null, valid: setLocator(valid_value) does not cause problems. no exceptions CtorSetGet105

Test Descriptions


See:
Test descriptions for CtorSetGetTests.java (CtorSetGet005, CtorSetGet105)


public void setMessage(java.lang.String _message)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventImpl, method public void setMessage(java.lang.String _message).

Assertion testing

Assertion Expected results Test Case ID
ValidationEventImpl(int, String, ValidationEventLocator) with all arguments non-null, valid: setMessage(valid_value) does not cause problems. no exceptions CtorSetGet003
ValidationEventImpl(int, String, ValidationEventLocator, Throwable) with all arguments non-null, valid: setMessage(valid_value) does not cause problems. no exceptions CtorSetGet103

Test Descriptions


See:
Test descriptions for CtorSetGetTests.java (CtorSetGet003, CtorSetGet103)


public void setSeverity(int _severity)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventImpl, method public void setSeverity(int _severity).

Assertion testing

Assertion Expected results Test Case ID
ValidationEventImpl(int, String, ValidationEventLocator) with all arguments non-null, valid: setMessage(valid_value) does not cause problems. no exceptions CtorSetGet002
ValidationEventImpl(int, String, ValidationEventLocator, Throwable) with all arguments non-null, valid: setMessage(valid_value) does not cause problems. no exceptions CtorSetGet102

Test Descriptions


See:
Test descriptions for CtorSetGetTests.java (CtorSetGet002, CtorSetGet102)


Last updated: 07/01/24
Copyright © 2017, 2020 Oracle and/or its affiliates. All rights reserved.