Extend (actually, go beyond) Schema Validation to field level sanity checks

Description

Notes/To-Dos:
1. Researched unit testing options. XMLUnit (an extension of JUnit) is probably most appropriate...since...(as per XMLUnit tagline)... "plain string compares just don't cut it"...
2. However (need to research this further)...the most effective way to achieve James's vision of semantic correctness (distinct from, and beyond, schema validation) would be to overload setter methods which either a) throw exceptions b) log warnings c) fail silently depending on context/configuration (thereby filtering out incorrect marshaling at the source). So for instance if attribute names can only be alphanumeric, then we will have a regex inside setName method. Instead of blindly doing this.name = name, we would do if (name.matches("^[a-zA-Z0-9]*$") this.name = name;

Status

Assignee

Unassigned

Reporter

Uday Kari

Labels

None

Story Points

None

Priority

Medium

Epic Name

WCS Test Harness
Configure