mirror of https://github.com/apache/jmeter.git
Compare commits
3 Commits
ac155afd7f
...
c3a91a82d0
Author | SHA1 | Date |
---|---|---|
|
c3a91a82d0 | |
|
8f370b0587 | |
|
6d6654ed3b |
|
@ -75,7 +75,6 @@ plugins.withId("java") {
|
|||
java {
|
||||
license()
|
||||
importOrder("static ", "java.", "javax", "org", "net", "com", "")
|
||||
removeUnusedImports()
|
||||
indentWithSpaces(4)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,10 +127,10 @@ dependencies {
|
|||
api("org.jetbrains.lets-plot:lets-plot-batik:4.1.0")
|
||||
api("org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.5.0")
|
||||
api("org.jetbrains:annotations:24.1.0")
|
||||
api("org.jodd:jodd-core:5.0.13")
|
||||
api("org.jodd:jodd-lagarto:5.0.13")
|
||||
api("org.jodd:jodd-log:5.0.13")
|
||||
api("org.jodd:jodd-props:5.0.13")
|
||||
api("org.jodd:jodd-core:5.3.0")
|
||||
api("org.jodd:jodd-lagarto:5.1.5")
|
||||
api("org.jodd:jodd-log:5.1.6")
|
||||
api("org.jodd:jodd-props:5.2.0")
|
||||
api("org.jsoup:jsoup:1.17.1")
|
||||
api("org.mongodb:mongo-java-driver:2.14.3")
|
||||
api("org.mozilla:rhino:1.7.14")
|
||||
|
|
|
@ -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