public void testGetHandledTag() {
assertEquals("aura:application", cdHandler.getHandledTag());
}
public void testDuplicateAttributeNames() throws Exception {
XMLParser parser = XMLParser.getInstance();
DefDescriptor<ApplicationDef> descriptor = DefDescriptorImpl.getInstance("test:fakeparser",
ApplicationDef.class);
StringSource<ApplicationDef> source = new StringSource<>(descriptor,
"<aura:application><aura:attribute name=\"implNumber\" type=\"String\"/>"
+ "<aura:attribute name=\"implNumber\" type=\"String\"/></aura:application>", "myID",
Format.XML);
ApplicationDef ad = parser.parse(descriptor, source);
try {
ad.validateDefinition();
fail("Should have thrown Exception. Two attributes with the same name cannot exist");
} catch (Exception e) {
checkExceptionContains(e, InvalidDefinitionException.class,