@Test(expectedExceptions = IllegalStateException.class) public void end_with_no_current_element() { MarkupWriter w = new MarkupWriterImpl(); w.end(); }
public Element end() { ensureCurrentElement(); fireElementDidEnd(); current = current.getContainer(); currentText = null; return current; }
MarkupWriterImpl implements MarkupWriter { public Element end() { ensureCurrentElement(); fireElementDidEnd(); current = current.getContainer(); currentText = null; return current; } }
MarkupWriterImpl implements MarkupWriter { public Element end() { ensureCurrentElement(); fireElementDidEnd(); current = current.getContainer(); currentText = null; return current; } MarkupWriterImpl();  MarkupWriterImpl(MarkupModel model);  MarkupWriterImpl(MarkupModel model, String encoding, String mimeType); }
MarkupWriterImpl implements MarkupWriter { public Element end() { ensureCurrentElement(); fireElementDidEnd(); current = current.getContainer(); currentText = null; return current; } MarkupWriterImpl();  MarkupWriterImpl(MarkupModel model);  MarkupWriterImpl(MarkupModel model, String encoding, String mimeType); void toMarkup(PrintWriter writer); @Override String toString(); Document getDocument(); Element getElement(); void cdata(String content); void write(String text); void writef(String format, Object... args); void attributes(Object... namesAndValues); Element element(String name, Object... namesAndValues); void writeRaw(String text); Element end(); void comment(String text); Element attributeNS(String namespace, String attributeName, String attributeValue); Element defineNamespace(String namespace, String namespacePrefix); Element elementNS(String namespace, String elementName); void addListener(MarkupWriterListener listener); void removeListener(MarkupWriterListener listener); }
MarkupWriterImpl implements MarkupWriter { public Element end() { ensureCurrentElement(); fireElementDidEnd(); current = current.getContainer(); currentText = null; return current; } MarkupWriterImpl();  MarkupWriterImpl(MarkupModel model);  MarkupWriterImpl(MarkupModel model, String encoding, String mimeType); void toMarkup(PrintWriter writer); @Override String toString(); Document getDocument(); Element getElement(); void cdata(String content); void write(String text); void writef(String format, Object... args); void attributes(Object... namesAndValues); Element element(String name, Object... namesAndValues); void writeRaw(String text); Element end(); void comment(String text); Element attributeNS(String namespace, String attributeName, String attributeValue); Element defineNamespace(String namespace, String namespacePrefix); Element elementNS(String namespace, String elementName); void addListener(MarkupWriterListener listener); void removeListener(MarkupWriterListener listener);  }