summaryrefslogtreecommitdiff
path: root/devfiles/questions/13.json
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2013-10-20 23:14:51 -0700
committerJesse Morgan <jesse@jesterpm.net>2013-10-20 23:14:51 -0700
commite77c9b418fdfb935ff8e99f10f607a4bbd7e1c8c (patch)
tree9005f8c0e3b18f853fb8093b01f6aad64949bc13 /devfiles/questions/13.json
parent5037f4797461649994068d97a8433b6cd793c523 (diff)
First stage of a major refactoring.
Question and Answer can now be serialized and deserialized to/from JSON. As such, I no longer have to pass awkward maps around. As part of this change I have introduced a Provider interface to abstract out loading and persisting these beans. The scoring logic has been completed factored out of SurveyResultsResource and into the various ScoringEngines. Tests have been added for Question, Answer, and the ScoringEngines. A bug has been fixed in computing the value for slider questions. The label identifiers in the circle questions have changed from all lower case to camel case. That is, topleft is now topLeft. Several issues have been corrected in the circle answers where the point values did not match the labels. Testing and code coverage support and reports have been added.
Diffstat (limited to 'devfiles/questions/13.json')
-rw-r--r--devfiles/questions/13.json16
1 files changed, 8 insertions, 8 deletions
diff --git a/devfiles/questions/13.json b/devfiles/questions/13.json
index 7a74502..236b5b1 100644
--- a/devfiles/questions/13.json
+++ b/devfiles/questions/13.json
@@ -2,16 +2,16 @@
"id": "13",
"question": "Those closest to me are:",
"type": "circle",
- "bottomright": "Outside the church",
- "bottomleft": "Inside the church but don't know my secrets",
- "topleft": "Inside the church and know me a bit",
- "topright": "Church family, knows me well, and prays for me",
+ "bottomRight": "Outside the church",
+ "bottomLeft": "Inside the church but don't know my secrets",
+ "topLeft": "Inside the church and know me a bit",
+ "topRight": "Church family, knows me well, and prays for me",
"answers": {
- "1.00,1.00": { "score": "2" },
- "1.00,-1.00": { "score": "4" },
- "-1.00,-1.00": { "score": "3" },
- "-1.00,1.00": { "score": "1" }
+ "1.00,1.00": { "score": "4" },
+ "1.00,-1.00": { "score": "1" },
+ "-1.00,-1.00": { "score": "2" },
+ "-1.00,1.00": { "score": "3" }
},
"previousQuestion": "12",