Functional tests for ValidationEventImpl
public ValidationEventImpl(int _severity, java.lang.String _message, ValidationEventLocator _locator)
public ValidationEventImpl(int _severity, java.lang.String _message, ValidationEventLocator _locator, java.lang.Throwable _linkedException)
public java.lang.Throwable getLinkedException()
public ValidationEventLocator getLocator()
public java.lang.String getMessage()
public int getSeverity()
public void setLinkedException(java.lang.Throwable _linkedException)
public void setLocator(ValidationEventLocator _locator)
public void setMessage(java.lang.String _message)
public void setSeverity(int _severity)
Functional tests for ValidationEventImplChecking that tested functionality is correct
| 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 cases included:
CtorSetGet001,
CtorSetGet002,
CtorSetGet003,
CtorSetGet004,
CtorSetGet005,
CtorSetGet101,
CtorSetGet102,
CtorSetGet103,
CtorSetGet104,
CtorSetGet105,
Ctor3_IAE,
Ctor4_IAE,
SetSeverity_IAE.
| Item | Value |
|---|---|
| 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)
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).
| _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 |
public ValidationEventImpl(int _severity, java.lang.String _message, ValidationEventLocator _locator, java.lang.Throwable _linkedException)
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).
| _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 |
public java.lang.Throwable getLinkedException()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventImpl,
method public java.lang.Throwable getLinkedException().
| 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 |
public ValidationEventLocator getLocator()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventImpl,
method public ValidationEventLocator getLocator().
| 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 |
public java.lang.String getMessage()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventImpl,
method public java.lang.String getMessage().
| 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 |
public int getSeverity()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventImpl,
method public int getSeverity().
| 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 |
public void setLinkedException(java.lang.Throwable _linkedException)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventImpl,
method public void setLinkedException(java.lang.Throwable _linkedException).
| 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 |
public void setLocator(ValidationEventLocator _locator)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventImpl,
method public void setLocator(ValidationEventLocator _locator).
| 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 |
public void setMessage(java.lang.String _message)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventImpl,
method public void setMessage(java.lang.String _message).
| 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 |
public void setSeverity(int _severity)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventImpl,
method public void setSeverity(int _severity).
| 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 |