@Test public void startElement_A$String$String$String$Attributes_StringIsEmpty() throws Exception { ExtConfigurationParserHandler target = new ExtConfigurationParserHandler(); String uri = ""; String localName = ""; String name = ""; Attributes attributes = Mockito.mock(Attributes.class); try { target.startElement(uri, localName, name, attributes); fail(); } catch (JUnitHelperCoreException e) { } }
@Override public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException { Assertion.on("name").mustNotBeEmpty(name); if (name.equals("junithelper-extension")) { config = new ExtConfiguration(); } else if (name.equals("instantiation")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentInstantiation = new ExtInstantiation(className); return; } } else if (name.equals("arg")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentArg = new ExtArg(className); return; } } else if (name.equals("pattern")) { if (attributes.getValue("name") != null) { String patternName = attributes.getValue("name"); currentArgPattern = new ExtArgPattern(currentArg, patternName); return; } } else if (name.equals("return")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentReturn = new ExtReturn(className); return; } } }
ExtConfigurationParserHandler extends DefaultHandler { @Override public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException { Assertion.on("name").mustNotBeEmpty(name); if (name.equals("junithelper-extension")) { config = new ExtConfiguration(); } else if (name.equals("instantiation")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentInstantiation = new ExtInstantiation(className); return; } } else if (name.equals("arg")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentArg = new ExtArg(className); return; } } else if (name.equals("pattern")) { if (attributes.getValue("name") != null) { String patternName = attributes.getValue("name"); currentArgPattern = new ExtArgPattern(currentArg, patternName); return; } } else if (name.equals("return")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentReturn = new ExtReturn(className); return; } } } }
ExtConfigurationParserHandler extends DefaultHandler { @Override public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException { Assertion.on("name").mustNotBeEmpty(name); if (name.equals("junithelper-extension")) { config = new ExtConfiguration(); } else if (name.equals("instantiation")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentInstantiation = new ExtInstantiation(className); return; } } else if (name.equals("arg")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentArg = new ExtArg(className); return; } } else if (name.equals("pattern")) { if (attributes.getValue("name") != null) { String patternName = attributes.getValue("name"); currentArgPattern = new ExtArgPattern(currentArg, patternName); return; } } else if (name.equals("return")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentReturn = new ExtReturn(className); return; } } }  }
ExtConfigurationParserHandler extends DefaultHandler { @Override public void startElement(String uri, String localName, String name, Attributes attributes) throws SAXException { Assertion.on("name").mustNotBeEmpty(name); if (name.equals("junithelper-extension")) { config = new ExtConfiguration(); } else if (name.equals("instantiation")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentInstantiation = new ExtInstantiation(className); return; } } else if (name.equals("arg")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentArg = new ExtArg(className); return; } } else if (name.equals("pattern")) { if (attributes.getValue("name") != null) { String patternName = attributes.getValue("name"); currentArgPattern = new ExtArgPattern(currentArg, patternName); return; } } else if (name.equals("return")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentReturn = new ExtReturn(className); return; } } }  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 startElement(String uri, String localName, String name, Attributes attributes) throws SAXException { Assertion.on("name").mustNotBeEmpty(name); if (name.equals("junithelper-extension")) { config = new ExtConfiguration(); } else if (name.equals("instantiation")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentInstantiation = new ExtInstantiation(className); return; } } else if (name.equals("arg")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentArg = new ExtArg(className); return; } } else if (name.equals("pattern")) { if (attributes.getValue("name") != null) { String patternName = attributes.getValue("name"); currentArgPattern = new ExtArgPattern(currentArg, patternName); return; } } else if (name.equals("return")) { if (attributes.getValue("class") != null) { String className = attributes.getValue("class"); currentReturn = new ExtReturn(className); return; } } }  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);  }