Merge branch '6.0.x'

This commit is contained in:
Sam Brannen
2023-06-24 14:15:05 +02:00
15 changed files with 37 additions and 52 deletions

View File

@@ -130,8 +130,8 @@ public abstract class AbstractHtmlElementTagTests extends AbstractTagTests {
}
protected final void assertAttributeNotPresent(String output, String attributeName) {
boolean condition = !output.contains(attributeName + "=\"");
assertThat(condition).as("Unexpected attribute '" + attributeName + "' in output '" + output + "'.").isTrue();
assertThat(output).as("Unexpected attribute '" + attributeName + "' in output '" + output + "'.")
.doesNotContain(attributeName + "=\"");
}
protected final void assertBlockTagContains(String output, String desiredContents) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -103,7 +103,6 @@ public class TextareaTagTests extends AbstractFormTagTests {
assertThat(this.tag.doStartTag()).isEqualTo(Tag.SKIP_BODY);
String output = getOutput();
System.out.println(output);
assertContainsAttribute(output, "name", "name");
assertBlockTagContains(output, HTML_ESCAPED_NAME);
}