}
}
public void testMoreEmptyElements() throws DecodingException {
try {
String name = new XMLParticle("<>").getElementName();
fail("xml element name is mandatory");
} catch (DecodingException e) {
// test succeded
}
try {
String name = new XMLParticle("< >").getElementName();
fail("xml element name is mandatory");
} catch (DecodingException e) {
// test succeded
}
try {
String name = new XMLParticle("< attr='k' >").getElementName();
fail("xml element name is mandatory");
} catch (DecodingException e) {
// test succeded
}
try {
String name = new XMLParticle("< attr='k' ></>").getElementName();
fail("xml element name is mandatory");
} catch (DecodingException e) {
// test succeded
}
}