-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue #4631 - Warning about skipping of <Arg> nodes is in wrong place for <Configure> #4632
Conversation
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
… for <Configure> Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really need the Bogus*
classes? They don't add anything and I would rather use existing test classes that have similar signatures to the Bogus*
introduced.
They are just test classes to use during testing of XmlConfiguration. |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
+ new testcase where <Arg> is needed, but is not the first node Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something has gone wrong before this PR... but I think it might simplify this PR to deal with it (see comment below).
However I have tested the branch and this impl works fine.
@joakime I suspect it was me that broke the index mechanism some time ago.... I'll see if I can fix it for this PR.... stand by.... |
Signed-off-by: Greg Wilkins <gregw@webtide.com>
last = configuration; | ||
} | ||
return last.getIdMap(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to see a test where there is a Arg
misplaced, as below, so that we define in a test how we should behave.
<Configure ...>
<Arg>...</Arg>
<New ...>...</New>
<Arg>...</Arg>
</Configure>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gregw pointed out that the Configure_9_3.dtd (and Configure_10_0.dtd) does not allow a <Arg>
anywhere but the start of the element list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A test that is expected to fail in this scenario is dependent on the dtd used (or not used) I would think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then shouldn't we do the same for Call
and New
? I don't think the DTD has the same enforcement for those.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also opened #4659 for the missing Id?,Name?,Class?,Arg*
in the <Configure>
section on Configure_10_0.dtd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The warning for skipping of
<Arg>
nodes was left over after the work done in issue #4550This warning isn't appropriate in the original place any more.
Added unit tests so that warnings are always in the appropriate place.