StringBuilder() boolean first = true for (String item : tokens) { if (first) first = false else sb.append separator sb.append item } return sb.toString } HOW MANY TEST WOULD YOU WRITE?
StringBuilder() boolean first = true for (String item : tokens) { if (first) first = false else sb.append separator sb.append item } return sb.toString } HOW MANY TEST WOULD MAKE YOU CONFIDENT?
from file json/newCustomer.json When the client performs POST request on /customers Then status code is 201 And header Location end with customers/(.+) And assign variable "{(location)}" to header "Location" value When the client performs GET request on {(location)} Then status code is 200 And response body contains properties from file json/newCustomer.json Acceptance Test-Driven Development (ATDD)