Default implementation of the ValidationEventLocator interface.
Functional tests for ValidationEventLocatorImpl
public ValidationEventLocatorImpl()
public ValidationEventLocatorImpl(java.lang.Object _object)
public ValidationEventLocatorImpl(org.w3c.dom.Node _node)
public ValidationEventLocatorImpl(org.xml.sax.Locator loc)
public ValidationEventLocatorImpl(org.xml.sax.SAXParseException e)
public int getColumnNumber()
public int getLineNumber()
public org.w3c.dom.Node getNode()
public java.lang.Object getObject()
public int getOffset()
public java.net.URL getURL()
public void setColumnNumber(int _columnNumber)
public void setLineNumber(int _lineNumber)
public void setNode(org.w3c.dom.Node _node)
public void setObject(java.lang.Object _object)
public void setOffset(int _offset)
public void setURL(java.net.URL _url)
Functional tests for ValidationEventLocatorImpl
Checking that tested functionality is correct
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 cases included:
Ctor001,
Ctor002,
Ctor003,
Ctor004,
Ctor005,
Set001,
Set002,
Set003,
Set004,
Set005,
Set006,
Ctor002a,
Ctor003a,
Ctor004a,
Ctor005a,
SetURL_null,
SetObject_null,
SetNode_null.
Item | Value |
---|---|
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()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
constructor public ValidationEventLocatorImpl()
.
Assertion | Expected results | Test Case ID |
---|---|---|
Construct a ValidationEventLocatorImpl without any specified parameters. So all parameters are unavailable. | no parameters are available | Ctor001 |
public ValidationEventLocatorImpl(java.lang.Object _object)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
constructor public ValidationEventLocatorImpl(java.lang.Object _object)
.
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 |
public ValidationEventLocatorImpl(org.w3c.dom.Node _node)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
constructor public ValidationEventLocatorImpl(org.w3c.dom.Node _node)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Constructs an object that points to a DOM Node. Node is available. | the node is available | Ctor003 |
public ValidationEventLocatorImpl(org.xml.sax.Locator loc)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
constructor public ValidationEventLocatorImpl(org.xml.sax.Locator loc)
.
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 |
public ValidationEventLocatorImpl(org.xml.sax.SAXParseException e)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
constructor public ValidationEventLocatorImpl(org.xml.sax.SAXParseException e)
.
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 |
public int getColumnNumber()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public int getColumnNumber()
.
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 |
public int getLineNumber()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public int getLineNumber()
.
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 |
public org.w3c.dom.Node getNode()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public org.w3c.dom.Node getNode()
.
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 |
public java.lang.Object getObject()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public java.lang.Object getObject()
.
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 |
public int getOffset()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public int getOffset()
.
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 |
public java.net.URL getURL()
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public java.net.URL getURL()
.
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 |
public void setColumnNumber(int _columnNumber)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public void setColumnNumber(int _columnNumber)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Sets the column number. | ColumnNumber is what set | Set001 |
public void setLineNumber(int _lineNumber)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public void setLineNumber(int _lineNumber)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Sets the line number. | LineNumber is what set | Set002 |
public void setNode(org.w3c.dom.Node _node)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public void setNode(org.w3c.dom.Node _node)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Sets the node. | Node is what set | Set003 |
public void setObject(java.lang.Object _object)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public void setObject(java.lang.Object _object)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Sets the Jakarta XML Binding content object. | Object is what set | Set004 |
public void setOffset(int _offset)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public void setOffset(int _offset)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Sets the offset. | Offset is what set | Set005 |
public void setURL(java.net.URL _url)
Domain testing of input and output conditions, and external
pre-conditions for class ValidationEventLocatorImpl,
method public void setURL(java.net.URL _url)
.
Assertion | Expected results | Test Case ID |
---|---|---|
Sets the name of the XML source. | URL is what set | Set006 |