Skip to content

TODO: Tests

Eric Henson edited this page Nov 2, 2013 · 10 revisions

Not Classified

Definition DSL

  • Service Exception for a handler not found
  • Complete suite of tests for the "parameter" keyword in the definition DSL

Functional

Need to Create

  • JSON syntax error: {"service":{"name"="invalid JSON"}
  • NPE from the Action
  • NPE from Definition
  • Empty content ("") (post an empty string) with proper contentType
  • Empty object ("{}")
  • "service" with non object: {"service":"non-object"}
  • "service" with object and no "name": {"service":{"noName":"failed test"}}
  • "service" with name but not a value of string" : {"service":{"name":["failed test"]}}
  • Service Definition not found
  • Action Script not found
  • Service Definition syntax error
  • Action Script syntax error

Already Created

  • Request as GET
  • Testing for a 406 when content is not JSON
  • Good legit service call