@Test public void endElement_A$String$String$String_StringIsNull() throws Exception { ExtConfigurationParserHandler target = new ExtConfigurationParserHandler(); String uri = null; String localName = null; String name = null; try { target.endElement(uri, localName, name); fail(); } catch (JUnitHelperCoreException e) { } }
@Override public void endElement(String uri, String localName, String name) throws SAXException { Assertion.on("config").mustNotBeNull(config); Assertion.on("name").mustNotBeEmpty(name); if (name.equals("instantiation")) { config.extInstantiations.add(currentInstantiation); currentInstantiation = null; } else if (name.equals("arg")) { config.extArgs.add(currentArg); currentArg = null; } else if (name.equals("pattern")) { currentArg.patterns.add(currentArgPattern); currentArgPattern = null; } else if (name.equals("return")) { config.extReturns.add(currentReturn); currentReturn = null; } else if (name.equals("import")) { if (currentInstantiation != null) { currentInstantiation.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArg.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } else if (currentReturn != null) { currentReturn.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } } else if (name.equals("pre-assign")) { if (currentInstantiation != null) { currentInstantiation.preAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.preAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("assign")) { if (currentInstantiation != null) { currentInstantiation.assignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.assignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("post-assign")) { if (currentInstantiation != null) { currentInstantiation.postAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.postAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("assert")) { currentReturn.asserts.add(tempValue.toString()); tempValue = new StringBuilder(); } }
ExtConfigurationParserHandler extends DefaultHandler { @Override public void endElement(String uri, String localName, String name) throws SAXException { Assertion.on("config").mustNotBeNull(config); Assertion.on("name").mustNotBeEmpty(name); if (name.equals("instantiation")) { config.extInstantiations.add(currentInstantiation); currentInstantiation = null; } else if (name.equals("arg")) { config.extArgs.add(currentArg); currentArg = null; } else if (name.equals("pattern")) { currentArg.patterns.add(currentArgPattern); currentArgPattern = null; } else if (name.equals("return")) { config.extReturns.add(currentReturn); currentReturn = null; } else if (name.equals("import")) { if (currentInstantiation != null) { currentInstantiation.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArg.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } else if (currentReturn != null) { currentReturn.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } } else if (name.equals("pre-assign")) { if (currentInstantiation != null) { currentInstantiation.preAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.preAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("assign")) { if (currentInstantiation != null) { currentInstantiation.assignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.assignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("post-assign")) { if (currentInstantiation != null) { currentInstantiation.postAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.postAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("assert")) { currentReturn.asserts.add(tempValue.toString()); tempValue = new StringBuilder(); } } }
ExtConfigurationParserHandler extends DefaultHandler { @Override public void endElement(String uri, String localName, String name) throws SAXException { Assertion.on("config").mustNotBeNull(config); Assertion.on("name").mustNotBeEmpty(name); if (name.equals("instantiation")) { config.extInstantiations.add(currentInstantiation); currentInstantiation = null; } else if (name.equals("arg")) { config.extArgs.add(currentArg); currentArg = null; } else if (name.equals("pattern")) { currentArg.patterns.add(currentArgPattern); currentArgPattern = null; } else if (name.equals("return")) { config.extReturns.add(currentReturn); currentReturn = null; } else if (name.equals("import")) { if (currentInstantiation != null) { currentInstantiation.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArg.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } else if (currentReturn != null) { currentReturn.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } } else if (name.equals("pre-assign")) { if (currentInstantiation != null) { currentInstantiation.preAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.preAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("assign")) { if (currentInstantiation != null) { currentInstantiation.assignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.assignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("post-assign")) { if (currentInstantiation != null) { currentInstantiation.postAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.postAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("assert")) { currentReturn.asserts.add(tempValue.toString()); tempValue = new StringBuilder(); } }  }
ExtConfigurationParserHandler extends DefaultHandler { @Override public void endElement(String uri, String localName, String name) throws SAXException { Assertion.on("config").mustNotBeNull(config); Assertion.on("name").mustNotBeEmpty(name); if (name.equals("instantiation")) { config.extInstantiations.add(currentInstantiation); currentInstantiation = null; } else if (name.equals("arg")) { config.extArgs.add(currentArg); currentArg = null; } else if (name.equals("pattern")) { currentArg.patterns.add(currentArgPattern); currentArgPattern = null; } else if (name.equals("return")) { config.extReturns.add(currentReturn); currentReturn = null; } else if (name.equals("import")) { if (currentInstantiation != null) { currentInstantiation.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArg.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } else if (currentReturn != null) { currentReturn.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } } else if (name.equals("pre-assign")) { if (currentInstantiation != null) { currentInstantiation.preAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.preAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("assign")) { if (currentInstantiation != null) { currentInstantiation.assignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.assignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("post-assign")) { if (currentInstantiation != null) { currentInstantiation.postAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.postAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("assert")) { currentReturn.asserts.add(tempValue.toString()); tempValue = new StringBuilder(); } }  ExtConfiguration getExtConfiguration(); @Override void characters(char[] ch, int start, int length); @Override void startElement(String uri, String localName, String name, Attributes attributes); @Override void endElement(String uri, String localName, String name); }
ExtConfigurationParserHandler extends DefaultHandler { @Override public void endElement(String uri, String localName, String name) throws SAXException { Assertion.on("config").mustNotBeNull(config); Assertion.on("name").mustNotBeEmpty(name); if (name.equals("instantiation")) { config.extInstantiations.add(currentInstantiation); currentInstantiation = null; } else if (name.equals("arg")) { config.extArgs.add(currentArg); currentArg = null; } else if (name.equals("pattern")) { currentArg.patterns.add(currentArgPattern); currentArgPattern = null; } else if (name.equals("return")) { config.extReturns.add(currentReturn); currentReturn = null; } else if (name.equals("import")) { if (currentInstantiation != null) { currentInstantiation.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArg.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } else if (currentReturn != null) { currentReturn.importList.add(tempValue.toString()); tempValue = new StringBuilder(); } } else if (name.equals("pre-assign")) { if (currentInstantiation != null) { currentInstantiation.preAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.preAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("assign")) { if (currentInstantiation != null) { currentInstantiation.assignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.assignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("post-assign")) { if (currentInstantiation != null) { currentInstantiation.postAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } else if (currentArg != null) { currentArgPattern.postAssignCode = tempValue.toString(); tempValue = new StringBuilder(); } } else if (name.equals("assert")) { currentReturn.asserts.add(tempValue.toString()); tempValue = new StringBuilder(); } }  ExtConfiguration getExtConfiguration(); @Override void characters(char[] ch, int start, int length); @Override void startElement(String uri, String localName, String name, Attributes attributes); @Override void endElement(String uri, String localName, String name);  }