From da82f3b492c3cd36f2e8723632a63a6cc1f4e39b Mon Sep 17 00:00:00 2001 From: Kostya Date: Sun, 6 Sep 2026 09:21:37 +0300 Subject: catalog: add generated v3 JAXB binding and ex-2 test data The ex-2 schema describes a nested Guess-Market/GM-events document in which every event carries its pricing mechanism inline, as either a GM-LMSR element holding the liquidity parameter b or a GM-order-book element holding the allow-mint, initial and d attributes, instead of naming a mechanism and passing its parameters separately. Add the xjc-generated classes for that schema under catalog.model.v3, along with the fixtures the loader will be tested against: small.xml with two events, one per mechanism, multiple.xml with four, and two negative cases -- error-2.xml, where a market maker is funded with zero initial cash, and error-3.xml, where a market maker points at event id 12, which no event declares -- so the cross-reference and funding checks have something to reject. The binding covers the GM-events subtree only. The GM-users half of the document and the per-event id element are not bound yet, so nothing reads these classes so far. --- test-data/ex-2/error-2.xml | 76 +++++++++++++++++++++++++++++++++++++++++++++ test-data/ex-2/error-3.xml | 48 ++++++++++++++++++++++++++++ test-data/ex-2/multiple.xml | 76 +++++++++++++++++++++++++++++++++++++++++++++ test-data/ex-2/small.xml | 48 ++++++++++++++++++++++++++++ 4 files changed, 248 insertions(+) create mode 100644 test-data/ex-2/error-2.xml create mode 100644 test-data/ex-2/error-3.xml create mode 100644 test-data/ex-2/multiple.xml create mode 100644 test-data/ex-2/small.xml (limited to 'test-data/ex-2') diff --git a/test-data/ex-2/error-2.xml b/test-data/ex-2/error-2.xml new file mode 100644 index 0000000..fea2eea --- /dev/null +++ b/test-data/ex-2/error-2.xml @@ -0,0 +1,76 @@ + + + + + 1 + This event gambles if Mujtaba is a live or not. it will be determined if he will be shown in public until 31.8.26 + 5 + + Hell Yea ! + No way ! + + + + 100 + + + + + 2 + Who do you think will win the world cap ? + 15 + + Argentina + Spain + + + + + + + 3 + Will there be an earth quake on the dead sea until the December 31th 2026 + 50 + + Yes + No + + + + + + + 4 + Will there be 30 mm of rain tomorrow at Alenbi 283 st by 12:00 PM ? + 10 + + Yes + No + + + + 200 + + + + + + + 0 + + + + + + 10000 + + + + + + + + 100 + + + diff --git a/test-data/ex-2/error-3.xml b/test-data/ex-2/error-3.xml new file mode 100644 index 0000000..d022938 --- /dev/null +++ b/test-data/ex-2/error-3.xml @@ -0,0 +1,48 @@ + + + + + 1 + This event gambles if Mujtaba is a live or not. it will be determined if he will be shown in public until 31.8.26 + 5 + + Hell Yea ! + No way ! + + + + 100 + + + + + 2 + Who do you think will win the world cap ? + 15 + + Argentina + Spain + + + + + + + + + 1000 + + + + + + 10000 + + + + + + 100 + + + diff --git a/test-data/ex-2/multiple.xml b/test-data/ex-2/multiple.xml new file mode 100644 index 0000000..52c6f6b --- /dev/null +++ b/test-data/ex-2/multiple.xml @@ -0,0 +1,76 @@ + + + + + 1 + This event gambles if Mujtaba is a live or not. it will be determined if he will be shown in public until 31.8.26 + 5 + + Hell Yea ! + No way ! + + + + 100 + + + + + 2 + Who do you think will win the world cap ? + 10 + + Argentina + Spain + + + + + + + 3 + Will there be an earth quake at the dead sea until the December 31th 2026 + 50 + + Yes + No + + + + + + + 4 + Will there be 30 mm of rain tomorrow at Alenbi 283 st by 12:00 PM ? + 10 + + Yes + No + + + + 200 + + + + + + + 1000 + + + + + + 10000 + + + + + + + + 100 + + + diff --git a/test-data/ex-2/small.xml b/test-data/ex-2/small.xml new file mode 100644 index 0000000..640aa3e --- /dev/null +++ b/test-data/ex-2/small.xml @@ -0,0 +1,48 @@ + + + + + 1 + This event gambles if Mujtaba is a live or not. it will be determined if he will be shown in public until 31.8.26 + 5 + + Hell Yea ! + No way ! + + + + 100 + + + + + 2 + Who do you think will win the world cap ? + 15 + + Argentina + Spain + + + + + + + + + 1000 + + + + + + 10000 + + + + + + 100 + + + -- cgit v1.2.3