Test for XmlAdapter
Functional tests for XmlAdapterChecking that tested functionality is correct
| Assertion | Test Case ID | 
|---|---|
| the test checks that Binder.marshal uses the 'marshal' method of custom XmlAdapter | XmlAdapter_marshal | 
| the test checks that Binder.unmarshal uses the 'unmarshal' method of custom XmlAdapter | XmlAdapter_unmarshal | 
| unmarshal() Removes leading and trailing whitespaces of the string given as the parameter, then replace any tab, CR, and LF by a whitespace character ' '. | NormalizedStringAdapter_unmarshal | 
| marshal() No-op. Just return the same string given as the parameter. | NormalizedStringAdapter_marshal | 
| unmarshal() Removes leading and trailing whitespaces of the string given as the parameter, then truncate any sequnce of tab, CR, LF, and SP by a single whitespace character ' '. | CollapsedStringAdapter_unmarshal | 
| marshal() No-op. Just return the same string given as the parameter. | CollapsedStringAdapter_marshal | 
| returns true if the specified char is a white space character. | CollapsedStringAdapter_isWhiteSpace | 
| unmarshal() Throws exception - if there's an error during the conversion. | HexBinaryAdapter_unmarshal | 
| marshal() Convert a bound type to a value type. | HexBinaryAdapter_marshal | 
Test cases included:
  XmlAdapter_marshal,
  XmlAdapter_unmarshal,
  NormalizedStringAdapter_unmarshal,
  NormalizedStringAdapter_marshal,
  CollapsedStringAdapter_unmarshal,
  CollapsedStringAdapter_marshal,
  CollapsedStringAdapter_isWhiteSpace,
  HexBinaryAdapter_unmarshal,
  HexBinaryAdapter_marshal.
| Item | Value | 
|---|---|
| title | Provides XmlAdapter implementation tests | 
| source | XmlAdapterTests.java | 
| executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.annotation.adapters.XmlAdapter.XmlAdapterTests | 
| keywords | runtime | 
| executeArgs | -TestCaseID ALL |