summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/gson/files/gson-2.10.2-GsonVersionDiagnosticsTest.patch')
-rw-r--r--dev-java/gson/files/gson-2.10.2-GsonVersionDiagnosticsTest.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-java/gson/files/gson-2.10.2-GsonVersionDiagnosticsTest.patch b/dev-java/gson/files/gson-2.10.2-GsonVersionDiagnosticsTest.patch
new file mode 100644
index 000000000000..097e5f0098a9
--- /dev/null
+++ b/dev-java/gson/files/gson-2.10.2-GsonVersionDiagnosticsTest.patch
@@ -0,0 +1,40 @@
+There were 2 failures:
+1) testAssertionErrorInDeserializationPrintsVersion(com.google.gson.functional.GsonVersionDiagnosticsTest)
+expected to match: (\(GSON \d\.\d+\.\d)(?:[-.][A-Z]+)?\)$
+but was : (GSON 2.10.2_pre20231128)
+ at com.google.gson.functional.GsonVersionDiagnosticsTest.ensureAssertionErrorPrintsGsonVersion(GsonVersionDiagnosticsTest.java:91)
+ at com.google.gson.functional.GsonVersionDiagnosticsTest.testAssertionErrorInDeserializationPrintsVersion(GsonVersionDiagnosticsTest.java:79)
+2) testAssertionErrorInSerializationPrintsVersion(com.google.gson.functional.GsonVersionDiagnosticsTest)
+expected to match: (\(GSON \d\.\d+\.\d)(?:[-.][A-Z]+)?\)$
+but was : (GSON 2.10.2_pre20231128)
+ at com.google.gson.functional.GsonVersionDiagnosticsTest.ensureAssertionErrorPrintsGsonVersion(GsonVersionDiagnosticsTest.java:91)
+ at com.google.gson.functional.GsonVersionDiagnosticsTest.testAssertionErrorInSerializationPrintsVersion(GsonVersionDiagnosticsTest.java:71)
+
+FAILURES!!!
+Tests run: 1335, Failures: 2
+--- a/src/test/java/com/google/gson/functional/GsonVersionDiagnosticsTest.java
++++ b/src/test/java/com/google/gson/functional/GsonVersionDiagnosticsTest.java
+@@ -26,6 +26,7 @@ import com.google.gson.stream.JsonWriter;
+ import java.util.regex.Pattern;
+ import org.junit.Before;
+ import org.junit.Test;
++import org.junit.Ignore;
+
+ /**
+ * Functional tests to validate printing of Gson version on AssertionErrors
+@@ -65,13 +66,13 @@ public class GsonVersionDiagnosticsTest {
+ assertThat("(GSON 2.8.5-SNAPSHOT)").matches(GSON_VERSION_PATTERN);
+ }
+
+- @Test
++ @Test @Ignore
+ public void testAssertionErrorInSerializationPrintsVersion() {
+ AssertionError e = assertThrows(AssertionError.class, () -> gson.toJson(new TestType()));
+ ensureAssertionErrorPrintsGsonVersion(e);
+ }
+
+- @Test
++ @Test @Ignore
+ public void testAssertionErrorInDeserializationPrintsVersion() {
+ AssertionError e =
+ assertThrows(AssertionError.class, () -> gson.fromJson("{'a':'abc'}", TestType.class));