]
Andrew Rubinger updated SHRINKDESC-83:
--------------------------------------
Status: Resolved (was: Pull Request Sent)
Assignee: Bartosz Majsak
Fix Version/s: 1.1.0-alpha-4
Resolution: Done
Upstream:
assertXPath ignores missing attributes
--------------------------------------
Key: SHRINKDESC-83
URL:
https://issues.jboss.org/browse/SHRINKDESC-83
Project: ShrinkWrap Descriptors
Issue Type: Sub-task
Reporter: Andrew Rubinger
Assignee: Bartosz Majsak
Priority: Blocker
Fix For: 1.1.0-alpha-4
Given:
{code}<persistence>
<persistence-unit name="hibernate-unit">
<transaction-type>JTA</transaction-type>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:/DefaultDS</jta-data-source>
<class>org.jboss.shrinkwrap.descriptor.api.persistence20.PersistenceDescriptor</class>
</persistence-unit>
</persistence>{code}
...running assertXPath like so:
{code}assertXPath(desc,
"/persistence/persistence-unit[@name='eclipselink-unit']/non-jta-data-source",
"jdbc/__default");{code}
...is not throwing an assertion failure ("eclipselink-unit" attribute is not
present anywhere).
This calls into question that we likely have tests giving false positives.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: