Update APIServer test to reflect latest caminus api
This commit is contained in:
parent
c930eb677e
commit
47ab875a7a
@ -49,10 +49,12 @@ public class APIServer {
|
|||||||
private class ValidateServlet extends HttpServlet {
|
private class ValidateServlet extends HttpServlet {
|
||||||
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {
|
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {
|
||||||
resp.setContentType("application/json");
|
resp.setContentType("application/json");
|
||||||
|
ServletOutputStream out = resp.getOutputStream();
|
||||||
|
|
||||||
if (req.getPathInfo().equals("/TestUser"))
|
if (req.getPathInfo().equals("/TestUser"))
|
||||||
resp.sendError(200);
|
out.println("{valid: true, error: ''}");
|
||||||
else
|
else
|
||||||
resp.sendError(404);
|
out.println("{valid: false, error: 'Test Failure'}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user