Update APIServer test to reflect latest caminus api

This commit is contained in:
Trever Fischer 2012-03-05 19:18:03 -05:00
parent c930eb677e
commit 47ab875a7a

View File

@ -49,10 +49,12 @@ public class APIServer {
private class ValidateServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {
resp.setContentType("application/json");
ServletOutputStream out = resp.getOutputStream();
if (req.getPathInfo().equals("/TestUser"))
resp.sendError(200);
out.println("{valid: true, error: ''}");
else
resp.sendError(404);
out.println("{valid: false, error: 'Test Failure'}");
}
}