201202203204205206207208209210211
{ MarkupWriter w = new MarkupWriterImpl(); w.element("root"); w.comment("<&>"); w.end(); assertEquals(w.toString(), "<root><!-- <&> --></root>"); } @Test
513514515516517518519520521522523
if (eventCallback.isAborted()) return true; executeStoredActions(); heartbeat.end(); formSupport.executeDeferred(); fireValidateFormEvent(context, eventCallback);
314315316317318319320321322323324
if (callback.isAborted()) return true; executeStoredActions(); heartbeat.end(); ValidationTracker tracker = environment.peek(ValidationTracker.class); // Let the listeners peform any final validations
519520521522523524525526527528529
didPushBeanValidationContext = true; executeStoredActions(); heartbeat.end(); formSupport.executeDeferred(); fireValidateEvent(EventConstants.VALIDATE, context, eventCallback);
924925926927928929930931932933934
if (i != 2) { writer.write(String.valueOf(i)); } writer.end(); if (e.getChildren().isEmpty()) { e.remove(); }
932933934935936937938939940941942
{ e.remove(); } } writer.end(); assertEquals(writer.toString(), "<?xml version=\"1.0\"?>\n" + "<ul><li>0</li><li>1</li><li>3</li></ul>"); } }
5354555657585960616263
verify(); Element e = writer.getElement(); writer.write("link text"); writer.end(); assertEquals(writer.toString(), "<a href=\"/foo/bar.baz\">link text</a>"); } @Test
81828384858687888990
linkFixture.writeLink(writer, link); verify(); writer.write("link text"); writer.end(); assertEquals(writer.toString(), "<a href=\"/foo/bar.baz#wilma\">link text</a>"); } }
112113114115116117118119120121122
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("just_options.txt")); verify(); }
144145146147148149150151152153154
writer.element("select"); select.options(writer); writer.end(); assertEquals(writer.toString(), read("blank_label.txt")); verify(); }