summaryrefslogtreecommitdiff
path: root/dev-java/owasp-java-encoder/files/owasp-java-encoder-1.2.3-BenchmarkTest.patch
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-10-24 20:23:41 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-10-24 20:23:41 +0000
commit4bbe50f2a6a056f7fab3870c02685bf5172fe115 (patch)
treecf828687d7b10ff2dcd8abf6cc849b1bffb1fda1 /dev-java/owasp-java-encoder/files/owasp-java-encoder-1.2.3-BenchmarkTest.patch
parentda22eecb9a6667b405ae4406923c6611f4a2dca0 (diff)
downloadbaldeagleos-repo-4bbe50f2a6a056f7fab3870c02685bf5172fe115.tar.gz
baldeagleos-repo-4bbe50f2a6a056f7fab3870c02685bf5172fe115.tar.xz
baldeagleos-repo-4bbe50f2a6a056f7fab3870c02685bf5172fe115.zip
Adding metadata
Diffstat (limited to 'dev-java/owasp-java-encoder/files/owasp-java-encoder-1.2.3-BenchmarkTest.patch')
-rw-r--r--dev-java/owasp-java-encoder/files/owasp-java-encoder-1.2.3-BenchmarkTest.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-java/owasp-java-encoder/files/owasp-java-encoder-1.2.3-BenchmarkTest.patch b/dev-java/owasp-java-encoder/files/owasp-java-encoder-1.2.3-BenchmarkTest.patch
new file mode 100644
index 000000000000..de988462ede7
--- /dev/null
+++ b/dev-java/owasp-java-encoder/files/owasp-java-encoder-1.2.3-BenchmarkTest.patch
@@ -0,0 +1,46 @@
+There were 2 failures:
+1) Encode.forHtmlUnquotedAttribute(org.owasp.encoder.BenchmarkTest$1$3)
+junit.framework.AssertionFailedError
+ at junit.framework.Assert.fail(Assert.java:55)
+ at junit.framework.Assert.assertTrue(Assert.java:22)
+ at junit.framework.Assert.assertTrue(Assert.java:31)
+ at junit.framework.TestCase.assertTrue(TestCase.java:200)
+ at org.owasp.encoder.BenchmarkTest$1$3.runTest(BenchmarkTest.java:115)
+2) Encode.forUriComponent(org.owasp.encoder.BenchmarkTest$1$3)
+junit.framework.AssertionFailedError
+ at junit.framework.Assert.fail(Assert.java:55)
+ at junit.framework.Assert.assertTrue(Assert.java:22)
+ at junit.framework.Assert.assertTrue(Assert.java:31)
+ at junit.framework.TestCase.assertTrue(TestCase.java:200)
+ at org.owasp.encoder.BenchmarkTest$1$3.runTest(BenchmarkTest.java:115)
+
+FAILURES!!!
+Tests run: 962, Failures: 2
+--- a/src/test/java/org/owasp/encoder/BenchmarkTest.java
++++ b/src/test/java/org/owasp/encoder/BenchmarkTest.java
+@@ -209,12 +209,6 @@ public class BenchmarkTest extends TestCase {
+ return Encode.forXml(input);
+ }
+ },
+- new Bench("Encode.forHtmlUnquotedAttribute") {
+- @Override
+- public String encode(String input) {
+- return Encode.forHtmlUnquotedAttribute(input);
+- }
+- },
+ new Bench("Encode.forJavaScript") {
+ @Override
+ public String encode(String input) {
+@@ -227,12 +221,6 @@ public class BenchmarkTest extends TestCase {
+ return Encode.forCssString(input);
+ }
+ },
+- new Bench("Encode.forUriComponent") {
+- @Override
+- public String encode(String input) {
+- return Encode.forUriComponent(input);
+- }
+- },
+ new Bench("Encode.forCDATA") {
+ @Override
+ public String encode(String input) {