Test Description and Specification for ValidationEventLocatorImpl tests

Default implementation of the ValidationEventLocator interface.



Functional tests for ValidationEventLocatorImpl

Description

Checking that tested functionality is correct

Assertion testing

Assertion Test Case ID
ValidationEventLocatorImpl(Locator loc) Throws: IllegalArgumentException - if the Locator is null Ctor002a
ValidationEventLocatorImpl(SAXParseException e) Throws: IllegalArgumentException - if the SAXParseException is null Ctor003a
ValidationEventLocatorImpl(Node _node) Throws: IllegalArgumentException - if the Node is null Ctor004a
ValidationEventLocatorImpl(Object _object) Throws: IllegalArgumentException - if the Object is null Ctor005a
Null values are allowed. SetURL_null
Null values are allowed. SetObject_null
Null values are allowed. SetNode_null

Test Descriptions

Test cases included:
Ctor001, Ctor002, Ctor003, Ctor004, Ctor005, Set001, Set002, Set003, Set004, Set005, Set006, Ctor002a, Ctor003a, Ctor004a, Ctor005a, SetURL_null, SetObject_null, SetNode_null.

ItemValue
title General tests of constructors and methods
source ValidationEventLocatorImplTests.java
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.helpers.ValidationEventLocatorImpl.ValidationEventLocatorImplTests
keywords runtime positive
executeArgs -TestCaseID ALL


public ValidationEventLocatorImpl()

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, constructor public ValidationEventLocatorImpl().

Assertion testing

Assertion Expected results Test Case ID
Construct a ValidationEventLocatorImpl without any specified parameters. So all parameters are unavailable. no parameters are available Ctor001

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor001)


public ValidationEventLocatorImpl(java.lang.Object _object)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, constructor public ValidationEventLocatorImpl(java.lang.Object _object).

Assertion testing

Assertion Expected results Test Case ID
Constructs an object that points to a Jakarta XML Binding content object. Object parameter is available. the object is available Ctor004

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor004)


public ValidationEventLocatorImpl(org.w3c.dom.Node _node)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, constructor public ValidationEventLocatorImpl(org.w3c.dom.Node _node).

Assertion testing

Assertion Expected results Test Case ID
Constructs an object that points to a DOM Node. Node is available. the node is available Ctor003

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor003)


public ValidationEventLocatorImpl(org.xml.sax.Locator loc)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, constructor public ValidationEventLocatorImpl(org.xml.sax.Locator loc).

Assertion testing

Assertion Expected results Test Case ID
Constructs an object from an org.xml.sax.Locator. ColumnNumber and LineNumber are available from the locator. ColumnNumber and LineNumber are what the locator has Ctor002

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor002)


public ValidationEventLocatorImpl(org.xml.sax.SAXParseException e)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, constructor public ValidationEventLocatorImpl(org.xml.sax.SAXParseException e).

Assertion testing

Assertion Expected results Test Case ID
Constructs an object from the location information of a SAXParseException. ColumnNumber and LineNumber are available from the SAXParseException. ColumnNumber and LineNumber are what the exception has Ctor005

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor005)


public int getColumnNumber()

Description

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

Assertion testing

Pre-conditions Assertion Expected output value Test Case ID
created by constructor ValidationEventLocatorImpl() Returns -1 if the column number is unavailable. -1 Ctor001
the column number is set Returns the column number if available. what set Set001

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor001, Set001)


public int getLineNumber()

Description

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

Assertion testing

Pre-conditions Assertion Expected output value Test Case ID
created by constructor ValidationEventLocatorImpl() Returns -1 if the line number is unavailable. -1 Ctor001
the line number is set Returns the line number if available. what set Set002

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor001, Set002)


public org.w3c.dom.Node getNode()

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, method public org.w3c.dom.Node getNode().

Assertion testing

Pre-conditions Assertion Expected output value Test Case ID
created by constructor ValidationEventLocatorImpl() Returns null if the node is unavailable. null Ctor001
the node is set Returns the node if available. what set Set003

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor001, Set003)


public java.lang.Object getObject()

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, method public java.lang.Object getObject().

Assertion testing

Pre-conditions Assertion Expected output value Test Case ID
created by constructor ValidationEventLocatorImpl() Returns null if the object in the Java content tree is unavailable. null Ctor001
the Jakarta XML Binding content object is set Returns the Jakarta XML Binding content object if available. what set Set004

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor001, Set004)


public int getOffset()

Description

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

Assertion testing

Pre-conditions Assertion Expected output value Test Case ID
created by constructor ValidationEventLocatorImpl() Returns -1 if the offset is unavailable. -1 Ctor001
the offset is set Returns the offset if available. what set Set005

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor001, Set005)


public java.net.URL getURL()

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, method public java.net.URL getURL().

Assertion testing

Pre-conditions Assertion Expected output value Test Case ID
created by constructor ValidationEventLocatorImpl() Returns null if the name of the XML source as a URL is unavailable. null Ctor001
the name of the XML source is set Returns the name of the XML source if available. what set Set006

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Ctor001, Set006)


public void setColumnNumber(int _columnNumber)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, method public void setColumnNumber(int _columnNumber).

Assertion testing

Assertion Expected results Test Case ID
Sets the column number. ColumnNumber is what set Set001

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Set001)


public void setLineNumber(int _lineNumber)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, method public void setLineNumber(int _lineNumber).

Assertion testing

Assertion Expected results Test Case ID
Sets the line number. LineNumber is what set Set002

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Set002)


public void setNode(org.w3c.dom.Node _node)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, method public void setNode(org.w3c.dom.Node _node).

Assertion testing

Assertion Expected results Test Case ID
Sets the node. Node is what set Set003

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Set003)


public void setObject(java.lang.Object _object)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, method public void setObject(java.lang.Object _object).

Assertion testing

Assertion Expected results Test Case ID
Sets the Jakarta XML Binding content object. Object is what set Set004

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Set004)


public void setOffset(int _offset)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, method public void setOffset(int _offset).

Assertion testing

Assertion Expected results Test Case ID
Sets the offset. Offset is what set Set005

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Set005)


public void setURL(java.net.URL _url)

Description

Domain testing of input and output conditions, and external pre-conditions for class ValidationEventLocatorImpl, method public void setURL(java.net.URL _url).

Assertion testing

Assertion Expected results Test Case ID
Sets the name of the XML source. URL is what set Set006

Test Descriptions


See:
Test descriptions for ValidationEventLocatorImplTests.java (Set006)


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