java


Alternative to a map of map of map when parsing a YAML file in a Java 1.8 program


I am currently working on a Java program which needs to read a YAML file through jackson, and play tests which correspond to what is written in the file. A test case is divided in one or several test cases:
case_list:
1: # Test Case 1
0: # Test sub-case 1.0
functions: # list of tests
- "R1{1;'T'}"
then: null # if the tests are true, then reads "result"
else: 1 # else, go to sub-case 1.1
result: "AAA" #returns "AAA"
1: #Test sub-case 1.1
functions:
- "R5{1000;10000}"
then: 3
else: 2
result: null
2:
functions:
- "R5{10000}"
then: 0 # go to the next test case (2.0)
else: null
resultat: "CCC"
3:
functions:
- "R3{'A'}"
- "R4{'75001'}"
then: null
else: 0
result: "BBB"
2: # Test Case 2
...
When parsing the YAML file into an object, the tests are stored in a map of map of map:
private Map<String, Map<String, Map<String, Object>>> case_list;
I can have the program navigate inside the maps and do what it needs to do, but I would rather use an easier to read (and easier to use) alternative.
Do you know about such an alternative, and the ways to implement them, if they exist?
Thank you in advance.

Related Links

How to test a simple set method in Mockito?
What is the $ in Syntactic sugar of Java?
In implements method, addmarker do not work / GoogleMap, Android
Errors testing toString Java code [duplicate]
Where does the Jenkins Windows installer put java?
How to get a Calendar in a specific timezone using Jackson?
Birt Reports with asp.net
Looping through file printing lines matching pattern
Java Compiler Android App
cross compile OpenJDK jdk8u102-b14, zeroshark for ARM
How copy node tree in AEM?
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.firebase.database
Is there a better way to wait for two threads to complete their tasks than using the CountDownLatch?
Java : Building URI with fragment before query params
Java mongo db authentication failed
Cassandra Bulk-Write performance with Java Driver is atrocious compared to MongoDB

Categories

HOME
variables
asp.net-core
session
tizen-web-app
rubygems
frameworks
binary-tree
ip
umd
ios-charts
handsontable
u-sql
qt-creator
jplayer
worldwind
ghc
ef-migrations
http-status-code-504
flux
textfield
plunker
autocad-plugin
riot.js
intentfilter
kudan
one-to-many
ejabberd-module
ecto
caret
code-search-engine
streamreader
vao
modelmapper
node-sass
menuitem
pebble-watch
crypt
windows-mobile-6.5
imanage
django-scheduler
mediaelement
background-service
topbeat
setuptools
django-debug-toolbar
design-by-contract
xpath-1.0
computer-algebra-systems
wyam
angular-local-storage
apache-commons-net
gwidgets
jsonpickle
fpml
zend-route
mesa
message-driven-bean
cloud-connect
typo3-neos
mbr
plasma
angularjs-controller
venn-diagram
php-parser
gamequery
substrings
data-driven
ctp4
avatar
aquaticprime
w3wp
commodore
paul-graham

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App