From 12611a5f0116351ab9114f5403222aead7a8329f Mon Sep 17 00:00:00 2001 From: Kostya Date: Fri, 14 Aug 2026 18:49:26 +0000 Subject: Implement in-memory repositories, XML load validation, and menu exit/list commands - Add generic Repository interface; EventRepository/UserRepository extend it - Implement InMemoryEventRepository/InMemoryUserRepository backed by ArrayList - Rename XMLLoader to XMLLoaderV1, add LoadValidator and mapper/v2 package - Add OrderBookTradingMechanism - Add User(String, int) convenience constructor - Add ListEventsMenuCommand and ExitMenuCommand, isExit() on MenuCommand - Menu now sizes selection range by max command index and exits on isExit() - LoadFileMenuCommand reports validation issues on failed loads - Untrack test-data/ and config.properties from .gitignore --- test-data/ex-1/multiple.xml | 47 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 test-data/ex-1/multiple.xml (limited to 'test-data/ex-1') diff --git a/test-data/ex-1/multiple.xml b/test-data/ex-1/multiple.xml new file mode 100644 index 0000000..3f2432d --- /dev/null +++ b/test-data/ex-1/multiple.xml @@ -0,0 +1,47 @@ + + + + + 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 + + + + 50 + + + + + 3 + Will there be an earth quake on the dead sea until the December 31th 2026 + 50 + + Yes + No + + + + 400 + + + + + -- cgit v1.2.3