I have the following problem: I have a web service in Java using Jetty, it works normally if I request other applications for the server, but my unit tests are returning the coding all wrong.
{"message":"Não foi possÃvel criar o usuário. Error: E-mail já cadastrado.","status":"error"}
I'm using the Eclipse IDE, and I've tried modifying it in several places, but none works:
I tried
File > Properties > Resource > Text File Encoding;
Window > Preferences > General > Workspace > Text File Encoding
Botão direito no projeto > Preferences > Text File Encoding
My method that performs the request looks like this:
public static void executeMethod() throws IOException, HttpException {
PostMethod post = createRequestPost(params, SIGNUP_ROTE);
int status = HttpClient().executeMethod(aMethod);;
String resultado = post.getResponseBodyAsString();
}
Could anyone help me?