diff options
| author | Mark Pulford <mark@kyne.com.au> | 2011-05-03 23:04:22 +0930 |
|---|---|---|
| committer | Mark Pulford <mark@kyne.com.au> | 2011-05-03 23:04:22 +0930 |
| commit | 4146070e69475d5eedcf7a9e3d990e511f46ec7a (patch) | |
| tree | 5e6bfa66ee9a1fc4ac4125f349c55a3d7c551e35 /tests/example4.json | |
| parent | ce3a769dbdd13571b5b761d933e17e8fe5771739 (diff) | |
| download | lua-cjson-4146070e69475d5eedcf7a9e3d990e511f46ec7a.tar.gz lua-cjson-4146070e69475d5eedcf7a9e3d990e511f46ec7a.tar.bz2 lua-cjson-4146070e69475d5eedcf7a9e3d990e511f46ec7a.zip | |
Add basic JSON tests and benchmark
Diffstat (limited to 'tests/example4.json')
| -rw-r--r-- | tests/example4.json | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/tests/example4.json b/tests/example4.json new file mode 100644 index 0000000..16335b2 --- /dev/null +++ b/tests/example4.json | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | {"web-app": { | ||
| 2 | "servlet": [ | ||
| 3 | { | ||
| 4 | "servlet-name": "cofaxCDS", | ||
| 5 | "servlet-class": "org.cofax.cds.CDSServlet", | ||
| 6 | "init-param": { | ||
| 7 | "configGlossary:installationAt": "Philadelphia, PA", | ||
| 8 | "configGlossary:adminEmail": "ksm@pobox.com", | ||
| 9 | "configGlossary:poweredBy": "Cofax", | ||
| 10 | "configGlossary:poweredByIcon": "/images/cofax.gif", | ||
| 11 | "configGlossary:staticPath": "/content/static", | ||
| 12 | "templateProcessorClass": "org.cofax.WysiwygTemplate", | ||
| 13 | "templateLoaderClass": "org.cofax.FilesTemplateLoader", | ||
| 14 | "templatePath": "templates", | ||
| 15 | "templateOverridePath": "", | ||
| 16 | "defaultListTemplate": "listTemplate.htm", | ||
| 17 | "defaultFileTemplate": "articleTemplate.htm", | ||
| 18 | "useJSP": false, | ||
| 19 | "jspListTemplate": "listTemplate.jsp", | ||
| 20 | "jspFileTemplate": "articleTemplate.jsp", | ||
| 21 | "cachePackageTagsTrack": 200, | ||
| 22 | "cachePackageTagsStore": 200, | ||
| 23 | "cachePackageTagsRefresh": 60, | ||
| 24 | "cacheTemplatesTrack": 100, | ||
| 25 | "cacheTemplatesStore": 50, | ||
| 26 | "cacheTemplatesRefresh": 15, | ||
| 27 | "cachePagesTrack": 200, | ||
| 28 | "cachePagesStore": 100, | ||
| 29 | "cachePagesRefresh": 10, | ||
| 30 | "cachePagesDirtyRead": 10, | ||
| 31 | "searchEngineListTemplate": "forSearchEnginesList.htm", | ||
| 32 | "searchEngineFileTemplate": "forSearchEngines.htm", | ||
| 33 | "searchEngineRobotsDb": "WEB-INF/robots.db", | ||
| 34 | "useDataStore": true, | ||
| 35 | "dataStoreClass": "org.cofax.SqlDataStore", | ||
| 36 | "redirectionClass": "org.cofax.SqlRedirection", | ||
| 37 | "dataStoreName": "cofax", | ||
| 38 | "dataStoreDriver": "com.microsoft.jdbc.sqlserver.SQLServerDriver", | ||
| 39 | "dataStoreUrl": "jdbc:microsoft:sqlserver://LOCALHOST:1433;DatabaseName | ||
| 40 | =goon", | ||
| 41 | "dataStoreUser": "sa", | ||
| 42 | "dataStorePassword": "dataStoreTestQuery", | ||
| 43 | "dataStoreTestQuery": "SET NOCOUNT ON;select test='test';", | ||
| 44 | "dataStoreLogFile": "/usr/local/tomcat/logs/datastore.log", | ||
| 45 | "dataStoreInitConns": 10, | ||
| 46 | "dataStoreMaxConns": 100, | ||
| 47 | "dataStoreConnUsageLimit": 100, | ||
| 48 | "dataStoreLogLevel": "debug", | ||
| 49 | "maxUrlLength": 500}}, | ||
| 50 | { | ||
| 51 | "servlet-name": "cofaxEmail", | ||
| 52 | "servlet-class": "org.cofax.cds.EmailServlet", | ||
| 53 | "init-param": { | ||
| 54 | "mailHost": "mail1", | ||
| 55 | "mailHostOverride": "mail2"}}, | ||
| 56 | { | ||
| 57 | "servlet-name": "cofaxAdmin", | ||
| 58 | "servlet-class": "org.cofax.cds.AdminServlet"}, | ||
| 59 | |||
| 60 | { | ||
| 61 | "servlet-name": "fileServlet", | ||
| 62 | "servlet-class": "org.cofax.cds.FileServlet"}, | ||
| 63 | { | ||
| 64 | "servlet-name": "cofaxTools", | ||
| 65 | "servlet-class": "org.cofax.cms.CofaxToolsServlet", | ||
| 66 | "init-param": { | ||
| 67 | "templatePath": "toolstemplates/", | ||
| 68 | "log": 1, | ||
| 69 | "logLocation": "/usr/local/tomcat/logs/CofaxTools.log", | ||
| 70 | "logMaxSize": "", | ||
| 71 | "dataLog": 1, | ||
| 72 | "dataLogLocation": "/usr/local/tomcat/logs/dataLog.log", | ||
| 73 | "dataLogMaxSize": "", | ||
| 74 | "removePageCache": "/content/admin/remove?cache=pages&id=", | ||
| 75 | "removeTemplateCache": "/content/admin/remove?cache=templates&id=", | ||
| 76 | "fileTransferFolder": "/usr/local/tomcat/webapps/content/fileTransferFo | ||
| 77 | lder", | ||
| 78 | "lookInContext": 1, | ||
| 79 | "adminGroupID": 4, | ||
| 80 | "betaServer": true}}], | ||
| 81 | "servlet-mapping": { | ||
| 82 | "cofaxCDS": "/", | ||
| 83 | "cofaxEmail": "/cofaxutil/aemail/*", | ||
| 84 | "cofaxAdmin": "/admin/*", | ||
| 85 | "fileServlet": "/static/*", | ||
| 86 | "cofaxTools": "/tools/*"}, | ||
| 87 | |||
| 88 | "taglib": { | ||
| 89 | "taglib-uri": "cofax.tld", | ||
| 90 | "taglib-location": "/WEB-INF/tlds/cofax.tld"}}} | ||
