mirror of https://github.com/apache/jmeter.git
Compare commits
3 Commits
0494c95c5c
...
ba0cc99411
Author | SHA1 | Date |
---|---|---|
|
ba0cc99411 | |
|
6d6654ed3b | |
|
0cca850d38 |
|
@ -75,7 +75,6 @@ plugins.withId("java") {
|
|||
java {
|
||||
license()
|
||||
importOrder("static ", "java.", "javax", "org", "net", "com", "")
|
||||
removeUnusedImports()
|
||||
indentWithSpaces(4)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -94,7 +94,7 @@ dependencies {
|
|||
api("org.apache-extras.beanshell:bsh:2.0b6")
|
||||
api("org.apache.commons:commons-collections4:4.4")
|
||||
api("org.apache.commons:commons-dbcp2:2.9.0")
|
||||
api("org.apache.commons:commons-jexl3:3.2.1")
|
||||
api("org.apache.commons:commons-jexl3:3.5.0")
|
||||
api("org.apache.commons:commons-jexl:2.1.1")
|
||||
api("org.apache.commons:commons-lang3:3.14.0")
|
||||
api("org.apache.commons:commons-math3:3.6.1")
|
||||
|
|
|
@ -249,7 +249,7 @@ public class SizeAssertion extends AbstractScopedAssertion implements Serializab
|
|||
if (operator == null) {
|
||||
return "ERROR - invalid condition";
|
||||
}
|
||||
|
||||
|
||||
if (operator.evaluate(resultSize, allowedSize)) {
|
||||
return "";
|
||||
} else {
|
||||
|
|
|
@ -86,7 +86,7 @@ public class ChangeCase extends AbstractFunction {
|
|||
LOGGER.error("Unknown mode {}, returning {} unchanged", mode, originalString);
|
||||
return originalString;
|
||||
}
|
||||
|
||||
|
||||
return switch (changeCaseMode) {
|
||||
case UPPER -> StringUtils.upperCase(originalString);
|
||||
case LOWER -> StringUtils.lowerCase(originalString);
|
||||
|
|
|
@ -81,7 +81,7 @@ public class TestHttpRequestHdr extends JMeterTestCase {
|
|||
Content-type: %s\r
|
||||
Content-length: %d\r
|
||||
\r
|
||||
%s""".formatted(url, HTTPConstants.APPLICATION_X_WWW_FORM_URLENCODED,
|
||||
%s""".formatted(url, HTTPConstants.APPLICATION_X_WWW_FORM_URLENCODED,
|
||||
getBodyLength(postBody, contentEncoding), postBody);
|
||||
s = getSamplerForRequest(url, testPostRequest, contentEncoding);
|
||||
assertEquals(HTTPConstants.POST, s.getMethod());
|
||||
|
@ -597,15 +597,15 @@ public class TestHttpRequestHdr extends JMeterTestCase {
|
|||
private String createMultipartFormBody(String titleValue, String descriptionValue,
|
||||
String contentEncoding, boolean includeExtraHeaders,
|
||||
String boundary, String endOfLine) {
|
||||
|
||||
|
||||
String titleHeaders = includeExtraHeaders ? """
|
||||
Content-Type: text/plain; charset=%s%s\
|
||||
Content-Transfer-Encoding: 8bit%s""".formatted(contentEncoding, endOfLine, endOfLine) : "";
|
||||
|
||||
|
||||
String descriptionHeaders = includeExtraHeaders ? """
|
||||
Content-Type: text/plain; charset=%s%s\
|
||||
Content-Transfer-Encoding: 8bit%s""".formatted(contentEncoding, endOfLine, endOfLine) : "";
|
||||
|
||||
|
||||
return """
|
||||
--%s%s\
|
||||
Content-Disposition: form-data; name="title"%s\
|
||||
|
|
Loading…
Reference in New Issue