December 2018
Intermediate to advanced
240 pages
7h 30m
English
Chapter 2. Taking mountebank for a test drive
Listing 2.1. Creating an imposter on the command line
Listing 2.2. The HTTP response from the curl command
Listing 2.3. An imposter with predicates
Listing 2.4. Combining product data with marketing content
Listing 2.5. Using a fluent interface to build imposters in code
Listing 2.6. Creating the product imposter in code
Listing 2.7. Creating the content imposter
Chapter 3. Testing using canned responses
Listing 3.1. Hello world! in an HTTP response
Listing 3.2. The HTTP response structure in JSON
Listing 3.3. The imposter configuration to respond with Hello, world!
Read now
Unlock full access